72 |
|
|
73 |
/** Creates a new instance of <code>PrefsDlg</code> */ |
/** Creates a new instance of <code>PrefsDlg</code> */ |
74 |
public |
public |
75 |
PrefsDlg(Frame owner) { |
PrefsDlg(Frame owner) { |
76 |
super(owner, i18n.getLabel("PrefsDlg.title"), true); |
super(owner, i18n.getLabel("PrefsDlg.title"), true); |
77 |
|
|
78 |
defaultsPane = new JSDefaultsPropsPane(this, Res.iconEdit16); |
defaultsPane = new JSDefaultsPropsPane(this, Res.iconEdit16); |
85 |
JPanel p = new JPanel(); |
JPanel p = new JPanel(); |
86 |
p.setLayout(new BorderLayout()); |
p.setLayout(new BorderLayout()); |
87 |
p.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
p.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
88 |
p.add(connectionPane, BorderLayout.NORTH); |
p.add(connectionPane); |
89 |
tp.addTab(i18n.getLabel("PrefsDlg.tabConnection"), p); |
tp.addTab(i18n.getLabel("PrefsDlg.tabBackend"), p); |
90 |
tp.addTab(i18n.getLabel("PrefsDlg.tabDefaults"), defaultsPane); |
tp.addTab(i18n.getLabel("PrefsDlg.tabDefaults"), defaultsPane); |
91 |
|
|
92 |
tp.setAlignmentX(RIGHT_ALIGNMENT); |
tp.setAlignmentX(RIGHT_ALIGNMENT); |
117 |
setLocation(JuifeUtils.centerLocation(this, owner)); |
setLocation(JuifeUtils.centerLocation(this, owner)); |
118 |
|
|
119 |
installListeners(); |
installListeners(); |
|
|
|
|
connectionPane.setLSAddress(Prefs.getLSAddress()); |
|
|
connectionPane.setLSPort(String.valueOf(Prefs.getLSPort())); |
|
120 |
} |
} |
121 |
|
|
122 |
private void |
private void |
253 |
private final JSViewProps.MidiDevicesPane midiDevsPane = new JSViewProps.MidiDevicesPane(); |
private final JSViewProps.MidiDevicesPane midiDevsPane = new JSViewProps.MidiDevicesPane(); |
254 |
private final JSViewProps.AudioDevicesPane audioDevsPane = new JSViewProps.AudioDevicesPane(); |
private final JSViewProps.AudioDevicesPane audioDevsPane = new JSViewProps.AudioDevicesPane(); |
255 |
|
|
256 |
|
private final JSViewProps.ConfirmationMessagesPane confirmationMessagesPane = |
257 |
|
new JSViewProps.ConfirmationMessagesPane(); |
258 |
|
|
259 |
ViewPane() { |
ViewPane() { |
260 |
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
261 |
|
|
266 |
add(Box.createRigidArea(new Dimension(0, 6))); |
add(Box.createRigidArea(new Dimension(0, 6))); |
267 |
add(midiDevsPane); |
add(midiDevsPane); |
268 |
add(audioDevsPane); |
add(audioDevsPane); |
269 |
|
add(confirmationMessagesPane); |
270 |
} |
} |
271 |
|
|
272 |
protected void |
protected void |
276 |
|
|
277 |
midiDevsPane.apply(); |
midiDevsPane.apply(); |
278 |
audioDevsPane.apply(); |
audioDevsPane.apply(); |
279 |
|
confirmationMessagesPane.apply(); |
280 |
} |
} |
281 |
} |
} |
282 |
|
|