Fix de layout
This commit is contained in:
@@ -51,31 +51,34 @@ public class Menu extends JFrame{
|
||||
|
||||
this.cargarGestiones(LocalDate.now().getYear(), LocalDate.now().getMonth());
|
||||
this.cargarPestanias();
|
||||
this.setLayout(new GridBagLayout());
|
||||
this.panel = new VistaPanelLateral(constrain, this.meses);
|
||||
this.panelCentral = new JPanel();
|
||||
this.panelCentral.setLayout(new GridBagLayout());
|
||||
this.panel = new VistaPanelLateral(this.meses);
|
||||
|
||||
constrain.fill = GridBagConstraints.HORIZONTAL;
|
||||
constrain.gridx = 0;
|
||||
constrain.gridwidth = 2;
|
||||
constrain.gridy = 0;
|
||||
constrain.weightx = 10;
|
||||
this.add(this.barra);
|
||||
constrain.fill = GridBagConstraints.VERTICAL;
|
||||
constrain.gridx = 1;
|
||||
constrain.weightx = 0;
|
||||
this.panelCentral.add(this.barra,constrain);
|
||||
constrain.fill = GridBagConstraints.HORIZONTAL;
|
||||
constrain.gridwidth = 1;
|
||||
constrain.gridx = 0;
|
||||
constrain.gridy = 1;
|
||||
constrain.weightx = 2;
|
||||
constrain.weightx = 0.25;
|
||||
this.panelCentral.add(pestania,constrain);
|
||||
getContentPane().add(pestania);
|
||||
setTitle("Titulo");
|
||||
setSize(new Dimension(420,320));
|
||||
setDefaultCloseOperation(3);
|
||||
setLocationRelativeTo(null);
|
||||
ControladorPanelLateral controlador3 = new ControladorPanelLateral(this.panel, this);
|
||||
this.listenerPestania();
|
||||
constrain.fill = GridBagConstraints.VERTICAL;
|
||||
constrain.gridx = 2;
|
||||
constrain.fill = GridBagConstraints.HORIZONTAL;
|
||||
constrain.gridx = 1;
|
||||
constrain.gridy = 1;
|
||||
constrain.weightx = 2;
|
||||
this.add(this.panel);
|
||||
constrain.weightx = 0.25;
|
||||
this.panelCentral.add(this.panel,constrain);
|
||||
this.add(this.panelCentral);
|
||||
}
|
||||
|
||||
private void close(){
|
||||
|
||||
Reference in New Issue
Block a user