Aniadido informes

This commit is contained in:
2020-01-27 12:19:42 +01:00
parent 7bf844a542
commit fdd1710592
54 changed files with 972 additions and 5 deletions

View File

@@ -31,7 +31,8 @@ import loggin.Vista;
public class Menu extends JFrame{
static final int VISTA_MODIFICAR = 0;
static final int VISTA_GESTION = 1;
static final int VISTA_INTERFAZ =2;
static final int VISTA_INTERFAZ = 2;
static final int VISTA_INFORMES = 3;
JPanel panelCentral;
JTabbedPane pestania;
@@ -39,6 +40,7 @@ public class Menu extends JFrame{
VistaAniadirVisualizar gastos;
VistaPanelGestion panelGestion;
VistaPanelModificar panelModificar;
VistaInformes vista;
VistaPanel panel;
String rutaGuardado;
int tema;
@@ -84,6 +86,7 @@ public class Menu extends JFrame{
this.panelGestion = new VistaPanelGestion(this.meses);
this.panelModificar = new VistaPanelModificar();
this.panelInterfaz = new VistaPanelInterfaz();
this.vista = new VistaInformes();
this.panel = this.panelGestion;
constrain.fill = GridBagConstraints.HORIZONTAL;
@@ -107,6 +110,7 @@ public class Menu extends JFrame{
ControladorPanelGestion controlador3 = new ControladorPanelGestion(this.panelGestion, this);
ControladorPanelModificar controlador4 = new ControladorPanelModificar(this.panelModificar, this);
ControladorPanelInterfaz controlador5 = new ControladorPanelInterfaz(this.panelInterfaz, this);
ControladorInforme controlador6 = new ControladorInforme(this.vista, new ModeloInformes());
this.listenerPestania();
this.elegirMes = new DatePicker();
@@ -379,6 +383,9 @@ public class Menu extends JFrame{
this.panel = this.panelInterfaz;
break;
}
case Menu.VISTA_INFORMES:{
this.panel = this.vista;
}
}
this.panelCentral.add(this.panel,constrain);
this.panel.repaint();