Las vistas fueron movidas con tal de conseguir un solo frame de programa y realizar todo el flujo dentro de el

This commit is contained in:
Daniel Cortes
2019-02-19 14:22:41 -03:00
parent cef6b0f2e9
commit 08da94aba4
18 changed files with 675 additions and 533 deletions

View File

@@ -24,9 +24,9 @@
package danielcortes.xyz;
import danielcortes.xyz.controllers.MainController;
import danielcortes.xyz.controllers.BaseLayoutController;
import danielcortes.xyz.data.Configuration;
import danielcortes.xyz.views.MainView;
import danielcortes.xyz.views.BaseLayout;
import javax.swing.*;
import java.io.FileInputStream;
@@ -45,9 +45,11 @@ public class Main {
}
private static void run() {
MainView view = new MainView();
MainController mainController = new MainController(view);
//MainSideBar view = new MainSideBar();
//MainSideBarController mainController = new MainSideBarController(view);
BaseLayout view = new BaseLayout();
BaseLayoutController controller = new BaseLayoutController(view);
executeView(view.getContentPanel());
}
@@ -56,7 +58,7 @@ public class Main {
frame.setContentPane(view);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(250,500);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}