movidas las vistas un poco para mayor claridad, eso espero, no es mi fuerte realmente
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
|
||||
package danielcortes.xyz;
|
||||
|
||||
import danielcortes.xyz.controllers.ManagerController;
|
||||
import danielcortes.xyz.controllers.MainController;
|
||||
import danielcortes.xyz.data.Configuration;
|
||||
import danielcortes.xyz.views.ManagerView;
|
||||
import danielcortes.xyz.views.MainView;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.io.FileInputStream;
|
||||
@@ -45,18 +45,18 @@ public class Main {
|
||||
}
|
||||
|
||||
private static void run() {
|
||||
ManagerView view = new ManagerView();
|
||||
ManagerController managerController = new ManagerController(view);
|
||||
MainView view = new MainView();
|
||||
MainController mainController = new MainController(view);
|
||||
|
||||
executeView(view.getContentPanel());
|
||||
}
|
||||
|
||||
private static void executeView(JComponent view) {
|
||||
JFrame frame = new JFrame("Caja: " + Configuration.get("nombre_caja"));
|
||||
JFrame frame = new JFrame(Configuration.get("nombre_caja"));
|
||||
frame.setContentPane(view);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
frame.pack();
|
||||
frame.setSize(250,500);
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user