diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-06 21:58:36 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-06 21:58:36 -0400 |
commit | e5873eef980a42e56355de1c8ffc8fe1a0aeedac (patch) | |
tree | a65b5f67f3850915de32e1cb39fc600ed98ee27c /src/main/Gui.java | |
parent | 372d97fee538f86c8333fbbde43cf51484b8ac67 (diff) | |
download | NPEhero-e5873eef980a42e56355de1c8ffc8fe1a0aeedac.tar.gz NPEhero-e5873eef980a42e56355de1c8ffc8fe1a0aeedac.tar.bz2 NPEhero-e5873eef980a42e56355de1c8ffc8fe1a0aeedac.zip |
Deleted old classes and added Block class
Diffstat (limited to 'src/main/Gui.java')
-rw-r--r-- | src/main/Gui.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main/Gui.java b/src/main/Gui.java deleted file mode 100644 index a8dad5c..0000000 --- a/src/main/Gui.java +++ /dev/null @@ -1,41 +0,0 @@ -/*Name: - *Date: - *Period: - *Teacher: - *Description: - */ -package main; - -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); - - } -} |