Inicio soporte graficos, añadido soporte para diferenciar gastos e

ingresos
This commit is contained in:
2019-11-12 21:48:19 +01:00
parent 8af689363a
commit ba84d7d15b
10 changed files with 76 additions and 23 deletions

View File

@@ -28,8 +28,8 @@ public class Menu extends JFrame{
this.setLayout(new GridBagLayout());
GridBagConstraints constrain=new GridBagConstraints();
this.panel=new VistaPanelLateral(constrain);
this.ingresos=new VistaAniadirVisualizar(this,datosIngresos);
this.gastos=new VistaAniadirVisualizar(this,datosGastos);
this.ingresos=new VistaAniadirVisualizar(this,datosIngresos,true);
this.gastos=new VistaAniadirVisualizar(this,datosGastos,false);
this.panelCentral=new JPanel();
this.pestania=new JTabbedPane();
constrain.fill=GridBagConstraints.VERTICAL;
@@ -41,11 +41,12 @@ public class Menu extends JFrame{
this.pestania.addTab("Gastos", gastos);
getContentPane().add(pestania);
setTitle("Titulo");
setSize(new Dimension(230,320));
setSize(new Dimension(420,320));
setDefaultCloseOperation(3);
setLocationRelativeTo(null);
ControladorAniadirVisualizar controlador=new ControladorAniadirVisualizar(this.ingresos);
ControladorAniadirVisualizar controlador2=new ControladorAniadirVisualizar(this.gastos);
ControladorPanelLateral controlador3=new ControladorPanelLateral(this.panel);
/*constrain.fill=GridBagConstraints.HORIZONTAL;
constrain.gridx=1;
constrain.gridy=0;