diff --git a/src/fourthline/mabiicco/MabiIcco.java b/src/fourthline/mabiicco/MabiIcco.java index e9e5c4e2..0f5c0c70 100644 --- a/src/fourthline/mabiicco/MabiIcco.java +++ b/src/fourthline/mabiicco/MabiIcco.java @@ -40,17 +40,13 @@ public void start(Stage stage) throws Exception { public void initialize() { try { + UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() ); + // font String fontName = AppResource.appText("ui.font"); if (!fontName.equals("ui.font")) { setUIFont(new javax.swing.plaf.FontUIResource(fontName, Font.PLAIN, 11)); } - UIManager.LookAndFeelInfo infos[] = UIManager.getInstalledLookAndFeels(); - for (UIManager.LookAndFeelInfo info : infos) { - System.out.println(info.getClassName()); - } - - UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() ); // initialize MabiDLS.getInstance().initializeMIDI(); diff --git a/src/fourthline/mabiicco/ui/MMLTrackView.java b/src/fourthline/mabiicco/ui/MMLTrackView.java index e28e3194..9a6253ec 100644 --- a/src/fourthline/mabiicco/ui/MMLTrackView.java +++ b/src/fourthline/mabiicco/ui/MMLTrackView.java @@ -20,8 +20,6 @@ import javax.swing.JTextField; import javax.swing.JComboBox; -import javax.swing.event.DocumentEvent; -import javax.swing.event.DocumentListener; import fourthline.mabiicco.AppResource; import fourthline.mabiicco.midi.InstClass; @@ -35,7 +33,7 @@ import java.util.EnumSet; import java.util.HashMap; -public final class MMLTrackView extends JPanel implements ActionListener, DocumentListener { +public final class MMLTrackView extends JPanel implements ActionListener { private static final long serialVersionUID = 4955513242349170508L; public static final String MMLPART_NAME[] = { @@ -131,7 +129,6 @@ private MMLTrackView() { mmlText[i] = new JTextField(); mmlText[i].setEditable(false); mmlText[i].setFont(new Font("Monospaced", Font.PLAIN, 12)); - mmlText[i].getDocument().addDocumentListener(this); mmlText[i].setColumns(10); GridBagConstraints gbc_mmlText = new GridBagConstraints(); @@ -229,17 +226,6 @@ public void setSelectMMLPartOfIndex(int index) { partButton[index].setSelected(true); } - @Override - public void removeUpdate(DocumentEvent event) { - } - @Override - public void insertUpdate(DocumentEvent event) { - } - - @Override - public void changedUpdate(DocumentEvent event) { - } - public void updateTrack() { MMLTrack mmlTrack = mmlManager.getMMLScore().getTrack(trackIndex); String mml[] = mmlTrack.getMabiMMLArray(); @@ -294,6 +280,7 @@ private void updateProgramChangeStatus() { } else { songComboBox.setVisible(true); } + updatePartButtonStatus(); InstClass songInst = ((InstClass) songComboBox.getSelectedItem()); int program = inst.getProgram(); @@ -303,7 +290,6 @@ private void updateProgramChangeStatus() { return; } - updatePartButtonStatus(); mmlManager.updateActiveTrackProgram(trackIndex, program, songProgram); }