diff --git a/WindowBuilder/GUI.java b/WindowBuilder/GUI.java deleted file mode 100644 index 6caeffc..0000000 --- a/WindowBuilder/GUI.java +++ /dev/null @@ -1,56 +0,0 @@ -// * this code was generated by Window Builder extension * // - -import javax.swing.*; -import java.awt.*; - - -public class GUI { - public static void main(String[] args) { - JFrame frame = new JFrame("Primary Window"); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - frame.setSize(400, 400); - - JPanel panel = new JPanel(new GridBagLayout()); - GridBagConstraints constraints = new GridBagConstraints(); - - // Fill the layout with placeholders - for (int row = 0; row < 12; row++) { - for (int col = 0; col < 12; col++) { - constraints.gridx = col; - constraints.gridy = row; - constraints.weightx = 1.0; - constraints.weighty = 1.0; - constraints.fill = GridBagConstraints.BOTH; - - Component filler = Box.createRigidArea(new Dimension(0, 0)); - panel.add(filler, constraints); - } - } - - constraints.weightx = 0; - constraints.weighty = 0; - constraints.fill = GridBagConstraints.NONE; - constraints.anchor = GridBagConstraints.NORTHWEST; - - - JLabel label_0 = new JLabel("If you see this window, then it is successful. "); - constraints.gridx = 1; - constraints.gridy = 2; - constraints.gridwidth = 1; - constraints.gridheight = 1; - panel.add(label_0, constraints); - - JButton button_0 = new JButton("Thank you"); - button_0.setPreferredSize(new Dimension(98, 47)); - - constraints.gridx = 8; - constraints.gridy = 9; - constraints.gridwidth = 2; - constraints.gridheight = 2; - panel.add(button_0, constraints); - - frame.add(panel); - frame.setVisible(true); - } -} - \ No newline at end of file diff --git a/src/xs_ibdpcompsci_javaintro/WindowBuilder_Test.java b/src/xs_ibdpcompsci_javaintro/WindowBuilder_Test.java deleted file mode 100644 index bf05fed..0000000 --- a/src/xs_ibdpcompsci_javaintro/WindowBuilder_Test.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * - */ -package xs_ibdpcompsci_javaintro; - -/** - * - */ -public class WindowBuilder_Test { - - /** - * @param args - */ - public static void main(String[] args) { - // TODO Auto-generated method stub - - } - -}