|
@@ -16,9 +16,9 @@ public class Main
|
|
|
mainpanel.add(view, BorderLayout.CENTER);
|
|
|
|
|
|
// Setup the frame to do frame things
|
|
|
- frame.setPreferredSize(new Dimension(300,300));
|
|
|
- frame.pack();
|
|
|
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
- frame.setVisible(true);
|
|
|
+ window.setPreferredSize(new Dimension(300,300));
|
|
|
+ window.pack();
|
|
|
+ window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
+ window.setVisible(true);
|
|
|
}
|
|
|
}
|