From 372d97fee538f86c8333fbbde43cf51484b8ac67 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sat, 6 May 2023 14:56:46 -0400 Subject: Add JavaFX and seperate source and class files --- apcs/Gui.java | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 apcs/Gui.java (limited to 'apcs/Gui.java') diff --git a/apcs/Gui.java b/apcs/Gui.java deleted file mode 100644 index 934c371..0000000 --- a/apcs/Gui.java +++ /dev/null @@ -1,41 +0,0 @@ -/*Name: - *Date: - *Period: - *Teacher: - *Description: - */ -package apcs; - -import javax.swing.JButton; -import javax.swing.JFrame; -public class Gui { - public Gui() - { - /* JFrame is a top level container (window) - * where we would be adding our button - */ - JFrame frame=new JFrame(); - - // Creating Button - JButton b=new JButton("Click Me.."); - /* This method specifies the location and size - * of button. In method setBounds(x, y, width, height) - * x,y) are cordinates from the top left - * corner and remaining two arguments are the width - * and height of the button. - */ - b.setBounds(50,50,200, 50); - - //Adding button onto the frame - frame.add(b); - - // Setting Frame size. This is the window size - frame.setSize(600,500); - - frame.setLayout(null); - frame.setVisible(true); - - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - - } -} -- cgit v1.2.3