aboutsummaryrefslogtreecommitdiff
path: root/apcs
diff options
context:
space:
mode:
Diffstat (limited to 'apcs')
-rw-r--r--apcs/Driver.java4
-rw-r--r--apcs/Gui.java6
2 files changed, 8 insertions, 2 deletions
diff --git a/apcs/Driver.java b/apcs/Driver.java
index a3b4c6c..0b9fba4 100644
--- a/apcs/Driver.java
+++ b/apcs/Driver.java
@@ -12,7 +12,9 @@ public class Driver
public static void main(String[] args)
{
- new Gui();
+
+ SongPlayer s = new SongPlayer();
+ s.createAndShowGui();
}
}
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);