|
@@ -8,12 +8,14 @@ public class Main
|
|
|
JFrame window = new JFrame("Paint, but worse");
|
|
|
Model model = new Model();
|
|
|
View view = new View(model);
|
|
|
+ Menubar menubar = new Menubar(model);
|
|
|
model.notifyObservers();
|
|
|
|
|
|
// create a layout panel to hold the views
|
|
|
JPanel mainpanel = new JPanel(new BorderLayout(10, 10));
|
|
|
window.getContentPane().add(mainpanel);
|
|
|
mainpanel.add(view, BorderLayout.CENTER);
|
|
|
+ mainpanel.add(menubar, BorderLayout.PAGE_START);
|
|
|
|
|
|
// Setup the frame to do frame things
|
|
|
window.setPreferredSize(new Dimension(300,300));
|