]> ruin.nu Git - moosique.git/blobdiff - MooToolbar.java
Fixed the FileFilter, implemented some menu options, tweaked the GUI and organized...
[moosique.git] / MooToolbar.java
index bca5b5430e69b2032e8940c59f1e887a1d1382d4..3045118d7cbe573f14105a6cf8c286ded0bbae6a 100644 (file)
@@ -1,5 +1,7 @@
 import javax.swing.*;
 import java.awt.event.*;
+import java.awt.*;
+import java.awt.Color;
 
 public class MooToolbar extends JToolBar implements ActionListener     {
 
@@ -17,6 +19,15 @@ public class MooToolbar extends JToolBar implements ActionListener   {
                fastforward = createButton("images/forward.gif", "fast forward");
                add(fastforward);
                
+               meas = createLabel("Measure");
+               add(meas);
+               
+               beat = createLabel("Beats");
+               add(beat);
+               
+               ticks = createLabel("Ticks");
+               add(ticks);
+               
                }
                
                private JButton createButton(String imageLocation, String toolTip) {
@@ -26,22 +37,31 @@ public class MooToolbar extends JToolBar implements ActionListener  {
                        return button;
                }
                
+               private JLabel createLabel(String name) {
+                       JLabel label = new JLabel(name);
+                       return label;
+                       
+               }
+               
                public void actionPerformed(ActionEvent e) {
-                       Object ob = e.getActionCommand();
                        
-                       if (ob == rewind) {
                        
-                       } else if (ob == playpause) {
-                               JOptionPane.showMessageDialog(null, "playing");
+                       /*if () {
+                       
+                       } else if () {
+                               
                        
-                       } else if (ob == stop) {
+                       } else if () {
                        
-                       } else if (ob == rewind) {
+                       } else if () {
                        
-                       }
+                       }*/
                }
                private JButton rewind;
                private JButton playpause;
                private JButton stop;
                private JButton fastforward;
+               private JLabel meas;
+               private JLabel beat;
+               private JLabel ticks;
 }