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 |
* |
* |
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 |
|
|
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 |
); |
); |
202 |
|
|
203 |
updateInfo(); |
updateInfo(); |
204 |
updateState(); |
updateState(); |
205 |
|
|
206 |
|
setMinimumSize(getPreferredSize()); |
207 |
} |
} |
208 |
|
|
209 |
protected JSPrefs |
protected JSPrefs |