From ffd2ec134c38ec782d7d29c9658ca35cad2b91d9 Mon Sep 17 00:00:00 2001 From: mafaldo Date: Sat, 10 Feb 2018 11:14:23 +0100 Subject: First commit --- src/Subconscious.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Subconscious.java (limited to 'src/Subconscious.java') diff --git a/src/Subconscious.java b/src/Subconscious.java new file mode 100644 index 0000000..dc15964 --- /dev/null +++ b/src/Subconscious.java @@ -0,0 +1,24 @@ +import javax.swing.*; +import java.awt.*; + +public class Subconscious { + + public static final Dimension WINDOW_SIZE = new Dimension(400, 400); + + public Subconscious() { + JFrame frame = new JFrame("Subconscious"); + + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + frame.setSize(WINDOW_SIZE); + frame.setLocationRelativeTo(null); + + MainPanel mainPanel= new MainPanel(); + frame.add(mainPanel); + + frame.setVisible(true); + } + + public static void main(String[] args) { + Subconscious subconscious = new Subconscious(); + } +} -- cgit v1.2.1