X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooMenu.java;h=d25ec0caa9a2cfd0a1fef8f0c74d65bdf44f19d8;hp=f51af1a28de19f14c5234bae9dd3f879eb2d7cc0;hb=c3a31c2aa833e2197f0929655c69a2090e8bbecc;hpb=83c3edf41adc9a5ae904331bc230fc1536fdeeb4 diff --git a/MooMenu.java b/MooMenu.java index f51af1a..d25ec0c 100644 --- a/MooMenu.java +++ b/MooMenu.java @@ -55,10 +55,10 @@ public class MooMenu extends JMenuBar implements ActionListener { addItem(music, "Delete track...", KeyEvent.VK_D, ActionEvent.CTRL_MASK); addItem(music, "Copy track...", KeyEvent.VK_Y, ActionEvent.CTRL_MASK); addItem(music, "Move track...", KeyEvent.VK_M, ActionEvent.CTRL_MASK); - edit.addSeparator(); + music.addSeparator(); addItem(music, "Insert measure..."); addItem(music, "Delete measure..."); - edit.addSeparator(); + music.addSeparator(); addItem(music, "Set time signature..."); addItem(music, "Set tempo..."); addItem(music, "Scale velocity..."); @@ -136,7 +136,7 @@ public class MooMenu extends JMenuBar implements ActionListener { } /** * Gets the users command of takes and properiate action - * @param e the action perfomed + * @param e The action perfomed. */ public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); @@ -213,13 +213,9 @@ public class MooMenu extends JMenuBar implements ActionListener { seq.deleteTrack(seq.getTracks()[NUMBER]); */ } else if (command == "Copy track...") { - MooDialog what = new MooDialog(MooDialog.COPY_TRACK); - } else if (command == "Move track...") { - MooDialog what = new MooDialog(MooDialog.MOVE_TRACK); - } else if (command == "Insert measure...") { } else if (command == "Delete measure...") { @@ -233,9 +229,7 @@ public class MooMenu extends JMenuBar implements ActionListener { } else if (command == "Transpose...") { } else if (command == "Contents") { - - JOptionPane.showMessageDialog(this, "här kommer contents komma"); - + MooDialog contents = new MooDialog(MooDialog.CONTENTS); } else if (command == "Getting started") { JOptionPane.showMessageDialog(null, "här kommer getting started komma"); @@ -254,7 +248,7 @@ public class MooMenu extends JMenuBar implements ActionListener { return false; } - /* + /** * gets the description of the filetype * @return "Midifiles the only filetyp compatibel with the program */