agregada propiedad para agregarle un nombre de prefijo a las ventanas

This commit is contained in:
Daniel Cortes
2019-01-18 18:56:15 -03:00
parent 5a9455eb4b
commit 0f3955ee34
5 changed files with 74 additions and 77 deletions

View File

@@ -98,7 +98,7 @@ public class Main {
ManagerView view = new ManagerView();
ManagerController managerController = new ManagerController(view, cajaDAO, documentosDAO, efectivoDAO, egresoDAO, ingresoDAO, tipoEgresoDAO, tipoIngresoDAO);
JFrame frame = new JFrame("Caja");
JFrame frame = new JFrame("Caja: " + Properties.getInstance().getProperty("nombre_caja"));
frame.setContentPane(view.getContentPanel());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

View File

@@ -1,6 +1,7 @@
package danielcortes.xyz.controllers;
import danielcortes.xyz.controllers.actions.NextAction;
import danielcortes.xyz.data.Properties;
import danielcortes.xyz.models.caja.Caja;
import danielcortes.xyz.models.calculo_fondo.CalculoFondo;
import danielcortes.xyz.models.calculo_fondo.CalculoFondoDAO;
@@ -36,7 +37,7 @@ public class CalcularFondoController {
}
private void showView() {
JFrame frame = new JFrame("Calculo de Fondo");
JFrame frame = new JFrame("Calculo de Fondo: " + Properties.getInstance().getProperty("nombre_caja"));
frame.setContentPane(view.getContentPanel());
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.pack();