Mejorando temas
This commit is contained in:
@@ -31,6 +31,7 @@ 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;
|
||||
|
||||
JPanel panelCentral;
|
||||
JTabbedPane pestania;
|
||||
@@ -50,6 +51,7 @@ public class Menu extends JFrame{
|
||||
DatePicker elegirMes;
|
||||
int anio;
|
||||
Month mes;
|
||||
VistaPanelInterfaz panelInterfaz;
|
||||
|
||||
/**
|
||||
* Constructor que carga los datos del menu
|
||||
@@ -81,6 +83,7 @@ public class Menu extends JFrame{
|
||||
this.panelCentral.setLayout(new GridBagLayout());
|
||||
this.panelGestion = new VistaPanelGestion(this.meses);
|
||||
this.panelModificar = new VistaPanelModificar();
|
||||
this.panelInterfaz = new VistaPanelInterfaz();
|
||||
this.panel = this.panelGestion;
|
||||
|
||||
constrain.fill = GridBagConstraints.HORIZONTAL;
|
||||
@@ -103,6 +106,7 @@ public class Menu extends JFrame{
|
||||
setLocationRelativeTo(null);
|
||||
ControladorPanelGestion controlador3 = new ControladorPanelGestion(this.panelGestion, this);
|
||||
ControladorPanelModificar controlador4 = new ControladorPanelModificar(this.panelModificar, this);
|
||||
ControladorPanelInterfaz controlador5 = new ControladorPanelInterfaz(this.panelInterfaz, this);
|
||||
this.listenerPestania();
|
||||
|
||||
this.elegirMes = new DatePicker();
|
||||
@@ -370,6 +374,10 @@ public class Menu extends JFrame{
|
||||
this.panel = this.panelModificar;
|
||||
break;
|
||||
}
|
||||
case Menu.VISTA_INTERFAZ:{
|
||||
this.panel = this.panelInterfaz;
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.panelCentral.add(this.panel,constrain);
|
||||
this.panel.repaint();
|
||||
|
||||
Reference in New Issue
Block a user