|
@@ -9,6 +9,8 @@ public class Main
|
|
Model model = new Model();
|
|
Model model = new Model();
|
|
View view = new View(model);
|
|
View view = new View(model);
|
|
Menubar menubar = new Menubar(model);
|
|
Menubar menubar = new Menubar(model);
|
|
|
|
+ Sidepane sidepane = new Sidepane(model);
|
|
|
|
+ Controls controls = new Controls(model);
|
|
model.notifyObservers();
|
|
model.notifyObservers();
|
|
|
|
|
|
// create a layout panel to hold the views
|
|
// create a layout panel to hold the views
|
|
@@ -17,6 +19,8 @@ public class Main
|
|
mainpanel.add(view, BorderLayout.CENTER);
|
|
mainpanel.add(view, BorderLayout.CENTER);
|
|
mainpanel.add(menubar, BorderLayout.PAGE_START);
|
|
mainpanel.add(menubar, BorderLayout.PAGE_START);
|
|
menubar.updateColour();
|
|
menubar.updateColour();
|
|
|
|
+ sidepane.updateColour();
|
|
|
|
+ controls.updateColour();
|
|
|
|
|
|
// Setup the frame to do frame things
|
|
// Setup the frame to do frame things
|
|
window.setPreferredSize(new Dimension(300,300));
|
|
window.setPreferredSize(new Dimension(300,300));
|