Build rota pero avanzando para conseguir que todo funcione unido a una caja

This commit is contained in:
Daniel Cortes
2018-12-27 15:00:42 -03:00
parent 3a45692c7a
commit ca6970a1ba
33 changed files with 2163 additions and 164 deletions

View File

@@ -25,30 +25,39 @@
package danielcortes.xyz;
import danielcortes.xyz.controllers.ManagerController;
import danielcortes.xyz.data.Properties;
import danielcortes.xyz.models.caja.CajaDAO;
import danielcortes.xyz.models.caja.MysqlCajaDAO;
import danielcortes.xyz.views.ManagerView;
import javax.swing.*;
import java.util.Locale;
public class Main {
private static final String lookAndFeel = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
public static void main(String[] args) {
System.setProperty("awt.useSystemAAFontSettings", "on");
System.setProperty("swing.aatext", "true");
try {
UIManager.setLookAndFeel(lookAndFeel);
UIManager.setLookAndFeel(Properties.getInstance().getProperty("look_and_feel"));
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
Locale.setDefault(new Locale("es"));
CajaDAO cajaDAO = new MysqlCajaDAO();
ManagerView view = new ManagerView();
ManagerController managerController = new ManagerController(view);
ManagerController managerController = new ManagerController(view, cajaDAO);
JFrame frame = new JFrame("Caja");
frame.setContentPane(view.getContentPanel());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(1300,700);
frame.setSize(780, 450);
//frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}