aboutsummaryrefslogtreecommitdiff
path: root/apcs/Gui.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-05-03 22:08:19 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-05-03 22:08:19 -0400
commit6a10a65a0dbcd0540202479a02e4f91881791d6b (patch)
tree99e4b7ba9ffa94a36ef803265061b11b53dfb70e /apcs/Gui.java
parent96fae9b176c670a2bae04f7f22367e15989e73b3 (diff)
downloadNPEhero-6a10a65a0dbcd0540202479a02e4f91881791d6b.tar.gz
NPEhero-6a10a65a0dbcd0540202479a02e4f91881791d6b.tar.bz2
NPEhero-6a10a65a0dbcd0540202479a02e4f91881791d6b.zip
rearange some files
Diffstat (limited to 'apcs/Gui.java')
-rw-r--r--apcs/Gui.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/apcs/Gui.java b/apcs/Gui.java
index 934c371..b6fb5a1 100644
--- a/apcs/Gui.java
+++ b/apcs/Gui.java
@@ -5,6 +5,8 @@
*Description:
*/
package apcs;
+import java.awt.Graphics;
+import java.awt.geom.RoundRectangle2D;
import javax.swing.JButton;
import javax.swing.JFrame;
@@ -17,7 +19,7 @@ public class Gui {
JFrame frame=new JFrame();
// Creating Button
- JButton b=new JButton("Click Me..");
+ JButton b=new TButton("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
@@ -28,6 +30,8 @@ public class Gui {
//Adding button onto the frame
frame.add(b);
+
+
// Setting Frame size. This is the window size
frame.setSize(600,500);