No me gusto como quedaba el codigo al colocar un boton de salida, por ahora se debera usar el nativo del sistema
This commit is contained in:
@@ -65,10 +65,6 @@ public class InformesController {
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
});
|
||||
|
||||
this.view.getSalirButton().addActionListener(e -> {
|
||||
((JFrame) this.view.getContentPanel().getParent().getParent().getParent()).dispose();
|
||||
});
|
||||
}
|
||||
|
||||
private void generarInformeLibroDeVentasListener() {
|
||||
|
||||
@@ -36,9 +36,6 @@ public class MainController {
|
||||
|
||||
this.executeView(view.getContentPanel(), "Informes Mensuales", new Dimension(250, 500));
|
||||
});
|
||||
this.view.getSalirButton().addActionListener(e -> {
|
||||
System.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
private void executeView(JComponent view, String title, Dimension d){
|
||||
|
||||
Reference in New Issue
Block a user