-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoreWindow.java
31 lines (23 loc) · 908 Bytes
/
CoreWindow.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import javax.swing.*;
import java.awt.*;
/**
* Initialises all the main parts of the GUI, and connects them together via constructors.
* Packs the parts of the GUI together.
*/
public class CoreWindow extends JFrame {
protected void init() {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(1200, 900);
this.setTitle("Digital Doily");
Container jpContainer = this.getContentPane();
DrawingPanel drawing = new DrawingPanel();
GalleryPanel gallery = new GalleryPanel(drawing);
SettingsPanel settings = new SettingsPanel(drawing, gallery);
jpContainer.setLayout(new BorderLayout());
jpContainer.add(settings, BorderLayout.WEST);
jpContainer.add(drawing, BorderLayout.CENTER);
this.pack();
this.setResizable(false);
this.setVisible(true);
}
}