]> ruin.nu Git - moosique.git/blobdiff - MooToolbar.java
fixed filefilter
[moosique.git] / MooToolbar.java
index 887fd8eba30fd4913286496a56f942a2524eb8a5..772a963179d34f41e44d44b492823cf46143e492 100644 (file)
@@ -1,25 +1,31 @@
 import javax.swing.*;
 
-/**
- * 
- * 
- * @author  Andersson, Andreen, Lanneskog, Pehrson
- * @version 1
- */
-public class Moo {
+public class MooToolbar extends JToolBar       {
 
-       /** 
-        * Creates the toolbar.
-        */
-       public MooToolbar () {
-
-       }
-
-       /** 
-        * 
-        */
-       public void () {
+       public MooToolbar()     {
        
-       }
+               rewind = createButton("images/rewind.gif", "rewind");
+               add(rewind);
+
+               playpause = createButton("images/play.gif", "play");
+               add(playpause);
+               
+               stop = createButton("images/stop.gif", "stop");
+               add(stop);
+               
+               fastforward = createButton("images/forward.gif", "fast forward");
+               add(fastforward);
+               
+               }
+               
+               private JButton createButton(String imageLocation, String toolTip) {
+                       JButton button = new JButton (new ImageIcon(imageLocation));
+                       button.setToolTipText(toolTip);
+                       return button;
+               }
+               
+               private JButton rewind;
+               private JButton playpause;
+               private JButton stop;
+               private JButton fastforward;
 }