]> ruin.nu Git - moosique.git/commitdiff
fixing indent..
authorMichael Andreen <harv@ruin.nu>
Sun, 11 May 2003 19:42:23 +0000 (19:42 +0000)
committerMichael Andreen <harv@ruin.nu>
Sun, 11 May 2003 19:42:23 +0000 (19:42 +0000)
MooTrackView.java

index ccaa10553ccbe38bc546c5ff67a1aa197c8ef913..bf6e31f7554872d79baaed367476889b34e51482 100644 (file)
@@ -9,7 +9,7 @@ import javax.sound.midi.*;
  * @author  Andersson , Andreen, Lanneskog, Pehrson
  * @version 1
  */
+
 public class MooTrackView extends JPanel implements ActionListener {
 
        private Track track;
@@ -18,7 +18,7 @@ public class MooTrackView extends JPanel implements ActionListener {
        private Rectangle box;
        private JPopupMenu popup;
        private JMenuItem menuItem;
-       
+
        public MooTrackView (Track track) {
                this.track = track;
                setPreferredSize(new Dimension(200, 200));
@@ -34,19 +34,19 @@ public class MooTrackView extends JPanel implements ActionListener {
                notes.setBorder(BorderFactory.createLineBorder(Color.black));
 
                popup = new JPopupMenu();
-               menuItem = new JMenuItem("Add...");
-               menuItem.addActionListener(this);
-               popup.add(menuItem);
-               menuItem = new JMenuItem("Preferences...");
-               menuItem.addActionListener(this);
-               popup.add(menuItem);
+               menuItem = new JMenuItem("Add...");
+               menuItem.addActionListener(this);
+               popup.add(menuItem);
+               menuItem = new JMenuItem("Preferences...");
+               menuItem.addActionListener(this);
+               popup.add(menuItem);
 
-               notes.addMouseListener(new PopupListener());
+               notes.addMouseListener(new PopupListener());
                add(notes, BorderLayout.CENTER);
        }
-       
+
        public void actionPerformed(ActionEvent e) {}
-    
+
        public Track getTrack() {
                return track;
        }
@@ -55,7 +55,7 @@ public class MooTrackView extends JPanel implements ActionListener {
                public void RectanglePanel() {
                        setPreferredSize(new Dimension(20, 20));
                }
-               
+
                public void paintComponent(Graphics g) {
                        super.paintComponent(g);
                        Graphics2D g2 = (Graphics2D)g;
@@ -69,20 +69,20 @@ public class MooTrackView extends JPanel implements ActionListener {
                        }
                }
        }
-       
+
        class PopupListener extends MouseAdapter {
-               public void mousePressed(MouseEvent e) {
+               public void mousePressed(MouseEvent e) {
                        maybeShowPopup(e);
-               }
-       
-               public void mouseReleased(MouseEvent e) {
+               }
+
+               public void mouseReleased(MouseEvent e) {
                        maybeShowPopup(e);
-               }
-       
-               private void maybeShowPopup(MouseEvent e) {
+               }
+
+               private void maybeShowPopup(MouseEvent e) {
                        if (e.isPopupTrigger()) {
                                popup.show(e.getComponent(), e.getX(), e.getY());
                        }
                }
        }
-}
\ No newline at end of file
+}