46 |
import org.jsampler.Prefs; |
import org.jsampler.Prefs; |
47 |
|
|
48 |
import org.jsampler.view.std.JSConnectionPropsPane; |
import org.jsampler.view.std.JSConnectionPropsPane; |
49 |
|
import org.jsampler.view.std.JSDefaultsPropsPane; |
50 |
import org.jsampler.view.std.JSGeneralProps; |
import org.jsampler.view.std.JSGeneralProps; |
51 |
import org.jsampler.view.std.JSLSConsolePropsPane; |
import org.jsampler.view.std.JSLSConsolePropsPane; |
52 |
|
|
62 |
private final GeneralPane genPane = new GeneralPane(); |
private final GeneralPane genPane = new GeneralPane(); |
63 |
private final ConsolePane consolePane = new ConsolePane(); |
private final ConsolePane consolePane = new ConsolePane(); |
64 |
private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane(); |
private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane(); |
65 |
|
private final JSDefaultsPropsPane defaultsPane; |
66 |
|
|
67 |
private final JButton btnApply = new JButton(i18n.getButtonLabel("apply")); |
private final JButton btnApply = new JButton(i18n.getButtonLabel("apply")); |
68 |
private final JButton btnClose = new JButton(i18n.getButtonLabel("close")); |
private final JButton btnClose = new JButton(i18n.getButtonLabel("close")); |
73 |
PrefsDlg(Frame owner) { |
PrefsDlg(Frame owner) { |
74 |
super(owner, i18n.getLabel("PrefsDlg.title"), true); |
super(owner, i18n.getLabel("PrefsDlg.title"), true); |
75 |
|
|
76 |
|
defaultsPane = new JSDefaultsPropsPane(this, Res.iconEdit16); |
77 |
|
|
78 |
JTabbedPane tp = new JTabbedPane(); |
JTabbedPane tp = new JTabbedPane(); |
79 |
tp.addTab(i18n.getLabel("PrefsDlg.tabGeneral"), genPane); |
tp.addTab(i18n.getLabel("PrefsDlg.tabGeneral"), genPane); |
80 |
tp.addTab(i18n.getLabel("PrefsDlg.tabConsole"), consolePane); |
tp.addTab(i18n.getLabel("PrefsDlg.tabConsole"), consolePane); |
84 |
p.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
p.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
85 |
p.add(connectionPane, BorderLayout.NORTH); |
p.add(connectionPane, BorderLayout.NORTH); |
86 |
tp.addTab(i18n.getLabel("PrefsDlg.tabConnection"), p); |
tp.addTab(i18n.getLabel("PrefsDlg.tabConnection"), p); |
87 |
|
tp.addTab(i18n.getLabel("PrefsDlg.tabDefaults"), defaultsPane); |
88 |
|
|
89 |
tp.setAlignmentX(RIGHT_ALIGNMENT); |
tp.setAlignmentX(RIGHT_ALIGNMENT); |
90 |
|
|
143 |
genPane.apply(); |
genPane.apply(); |
144 |
consolePane.apply(); |
consolePane.apply(); |
145 |
connectionPane.apply(); |
connectionPane.apply(); |
146 |
|
defaultsPane.apply(); |
147 |
|
|
148 |
setVisible(false); |
setVisible(false); |
149 |
} |
} |