66 |
|
|
67 |
import org.jsampler.view.std.JSColorButton; |
import org.jsampler.view.std.JSColorButton; |
68 |
import org.jsampler.view.std.JSConnectionPropsPane; |
import org.jsampler.view.std.JSConnectionPropsPane; |
69 |
|
import org.jsampler.view.std.JSDefaultsPropsPane; |
70 |
import org.jsampler.view.std.JSGeneralProps; |
import org.jsampler.view.std.JSGeneralProps; |
71 |
import org.jsampler.view.std.JSLSConsolePropsPane; |
import org.jsampler.view.std.JSLSConsolePropsPane; |
72 |
|
|
84 |
private final ViewPane viewPane = new ViewPane(); |
private final ViewPane viewPane = new ViewPane(); |
85 |
private final ConsolePane consolePane = new ConsolePane(); |
private final ConsolePane consolePane = new ConsolePane(); |
86 |
private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane(); |
private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane(); |
87 |
|
private final JSDefaultsPropsPane defaultsPane; |
88 |
|
|
89 |
private final JButton btnApply = new JButton(i18n.getButtonLabel("apply")); |
private final JButton btnApply = new JButton(i18n.getButtonLabel("apply")); |
90 |
private final JButton btnClose = new JButton(i18n.getButtonLabel("close")); |
private final JButton btnClose = new JButton(i18n.getButtonLabel("close")); |
94 |
PrefsDlg(Frame frm) { |
PrefsDlg(Frame frm) { |
95 |
super(frm, i18n.getLabel("PrefsDlg"), true); |
super(frm, i18n.getLabel("PrefsDlg"), true); |
96 |
|
|
97 |
|
defaultsPane = new JSDefaultsPropsPane(this, Res.iconEdit16); |
98 |
|
|
99 |
initPrefsDlg(); |
initPrefsDlg(); |
100 |
installListeners(); |
installListeners(); |
101 |
|
|
117 |
p.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
p.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
118 |
p.add(connectionPane, BorderLayout.NORTH); |
p.add(connectionPane, BorderLayout.NORTH); |
119 |
tp.addTab(i18n.getLabel("PrefsDlg.tabConnection"), p); |
tp.addTab(i18n.getLabel("PrefsDlg.tabConnection"), p); |
120 |
|
tp.addTab(i18n.getLabel("PrefsDlg.tabDefaults"), defaultsPane); |
121 |
|
|
122 |
tp.setAlignmentX(RIGHT_ALIGNMENT); |
tp.setAlignmentX(RIGHT_ALIGNMENT); |
123 |
|
|
171 |
viewPane.apply(); |
viewPane.apply(); |
172 |
consolePane.apply(); |
consolePane.apply(); |
173 |
connectionPane.apply(); |
connectionPane.apply(); |
174 |
|
defaultsPane.apply(); |
175 |
|
|
176 |
setVisible(false); |
setVisible(false); |
177 |
} |
} |