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:
Daniel Cortes
2019-02-15 20:35:49 -03:00
parent ea5bccdaba
commit d06a8f80f5
8 changed files with 5 additions and 40 deletions

View File

@@ -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() {

View File

@@ -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){