/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/PrefsDlg.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/PrefsDlg.java

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

revision 1312 by iliev, Fri Aug 10 20:24:23 2007 UTC revision 1313 by iliev, Thu Aug 30 22:44:29 2007 UTC
# Line 46  import org.jsampler.LSConsoleModel; Line 46  import org.jsampler.LSConsoleModel;
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    
# Line 61  public class PrefsDlg extends EnhancedDi Line 62  public class PrefsDlg extends EnhancedDi
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"));
# Line 71  public class PrefsDlg extends EnhancedDi Line 73  public class PrefsDlg extends EnhancedDi
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);
# Line 80  public class PrefsDlg extends EnhancedDi Line 84  public class PrefsDlg extends EnhancedDi
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                                    
# Line 138  public class PrefsDlg extends EnhancedDi Line 143  public class PrefsDlg extends EnhancedDi
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          }          }

Legend:
Removed from v.1312  
changed lines
  Added in v.1313

  ViewVC Help
Powered by ViewVC