/[svn]/jsampler/trunk/src/org/jsampler/view/std/JSAddOrEditInstrumentDlg.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/std/JSAddOrEditInstrumentDlg.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2147 by iliev, Sun Mar 22 18:11:39 2009 UTC revision 2148 by iliev, Thu Oct 14 14:45:42 2010 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2010 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 91  public class JSAddOrEditInstrumentDlg ex Line 91  public class JSAddOrEditInstrumentDlg ex
91           */           */
92          public JSAddOrEditInstrumentDlg(OrchestraInstrument instr) {          public JSAddOrEditInstrumentDlg(OrchestraInstrument instr) {
93                  super(CC.getMainFrame(), i18n.getLabel("JSAddOrEditInstrumentDlg.title"));                  super(CC.getMainFrame(), i18n.getLabel("JSAddOrEditInstrumentDlg.title"));
94                    setResizable(true);
95                                    
96                  instrument = instr;                  instrument = instr;
97                                    
# Line 98  public class JSAddOrEditInstrumentDlg ex Line 99  public class JSAddOrEditInstrumentDlg ex
99                  String[] files = preferences().getStringListProperty("recentInstrumentFiles");                  String[] files = preferences().getStringListProperty("recentInstrumentFiles");
100                  for(String s : files) cbPath.addItem(s);                  for(String s : files) cbPath.addItem(s);
101                  cbPath.setSelectedItem(null);                  cbPath.setSelectedItem(null);
102                    
103                    cbPath.setMinimumSize (
104                            new Dimension(200, cbPath.getMinimumSize().height)
105                    );
106    
107                  cbPath.setPreferredSize (                  cbPath.setPreferredSize (
108                          new Dimension(200, cbPath.getPreferredSize().height)                          new Dimension(200, cbPath.getPreferredSize().height)
109                  );                  );
# Line 197  public class JSAddOrEditInstrumentDlg ex Line 202  public class JSAddOrEditInstrumentDlg ex
202                                    
203                  updateInfo();                  updateInfo();
204                  updateState();                  updateState();
205    
206                    setMinimumSize(getPreferredSize());
207          }          }
208                    
209          protected JSPrefs          protected JSPrefs

Legend:
Removed from v.2147  
changed lines
  Added in v.2148

  ViewVC Help
Powered by ViewVC