init
This commit is contained in:
40
src/VistaControlador/Menu.java
Normal file
40
src/VistaControlador/Menu.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package VistaControlador;
|
||||
|
||||
import java.awt.Dimension;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JTabbedPane;
|
||||
|
||||
public class Menu extends JFrame{
|
||||
protected JPanel panelCentral;
|
||||
protected JTabbedPane pestania;
|
||||
protected Vista ingresos;
|
||||
protected Vista gastos;
|
||||
|
||||
public Menu() {
|
||||
init();
|
||||
}
|
||||
|
||||
private void init() {
|
||||
this.ingresos=new Vista();
|
||||
this.gastos=new Vista();
|
||||
this.panelCentral=new JPanel();
|
||||
this.pestania=new JTabbedPane();
|
||||
this.panelCentral.add(pestania);
|
||||
this.gastos=new Vista();
|
||||
this.pestania.addTab("Ingresos", ingresos);
|
||||
this.pestania.addTab("Gastos", gastos);
|
||||
getContentPane().add(pestania);
|
||||
//getContentPane().add(boton);
|
||||
setTitle("Titulo");
|
||||
setSize(new Dimension(230,320));
|
||||
setDefaultCloseOperation(3);
|
||||
setLocationRelativeTo(null);
|
||||
Controlador controlador=new Controlador(this.ingresos);
|
||||
Controlador controlador2=new Controlador(this.gastos);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user