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

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

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

revision 1766 by iliev, Sat May 31 23:04:01 2008 UTC revision 1767 by iliev, Mon Sep 8 00:19:27 2008 UTC
# Line 25  package org.jsampler.view.classic; Line 25  package org.jsampler.view.classic;
25  import java.awt.BorderLayout;  import java.awt.BorderLayout;
26  import java.awt.Color;  import java.awt.Color;
27  import java.awt.Container;  import java.awt.Container;
28    import java.awt.Dialog;
29  import java.awt.Dimension;  import java.awt.Dimension;
30  import java.awt.GraphicsEnvironment;  import java.awt.GraphicsEnvironment;
31  import java.awt.Font;  import java.awt.Font;
# Line 64  import org.jsampler.JSampler; Line 65  import org.jsampler.JSampler;
65  import org.jsampler.LSConsoleModel;  import org.jsampler.LSConsoleModel;
66  import org.jsampler.Prefs;  import org.jsampler.Prefs;
67    
68    import org.jsampler.view.std.JSAdvancedGeneralPropsDlg;
69  import org.jsampler.view.std.JSColorButton;  import org.jsampler.view.std.JSColorButton;
70  import org.jsampler.view.std.JSConnectionPropsPane;  import org.jsampler.view.std.JSConnectionPropsPane;
71  import org.jsampler.view.std.JSDefaultsPropsPane;  import org.jsampler.view.std.JSDefaultsPropsPane;
# Line 82  import static org.jsampler.view.std.StdP Line 84  import static org.jsampler.view.std.StdP
84  public class PrefsDlg extends EnhancedDialog {  public class PrefsDlg extends EnhancedDialog {
85          private final JTabbedPane tabbedPane = new JTabbedPane();          private final JTabbedPane tabbedPane = new JTabbedPane();
86                    
87          private final GeneralPane genPane = new GeneralPane();          private final GeneralPane genPane = new GeneralPane(this);
88          private final ViewPane viewPane = new ViewPane();          private final ViewPane viewPane = new ViewPane();
89          private final ConsolePane consolePane = new ConsolePane();          private final ConsolePane consolePane = new ConsolePane();
90          private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane();          private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane();
# Line 207  class GeneralPane extends JPanel { Line 209  class GeneralPane extends JPanel {
209                    
210          private final RecentScriptsPane recentScriptsPane = new RecentScriptsPane();          private final RecentScriptsPane recentScriptsPane = new RecentScriptsPane();
211                    
212            private final JButton btnAdvanced = new JButton(i18n.getButtonLabel("GeneralPane.btnAdvanced"));
213            
214            private final Dialog owner;
215                    
216          public          public
217          GeneralPane() {          GeneralPane(Dialog owner) {
218                    this.owner = owner;
219                    
220                  setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));                  setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
221                                    
222                  checkWindowSizeAndLocation.setAlignmentX(JPanel.LEFT_ALIGNMENT);                  checkWindowSizeAndLocation.setAlignmentX(JPanel.LEFT_ALIGNMENT);
# Line 252  class GeneralPane extends JPanel { Line 259  class GeneralPane extends JPanel {
259                  add(Box.createRigidArea(new Dimension(0, 6)));                  add(Box.createRigidArea(new Dimension(0, 6)));
260                                    
261                  add(recentScriptsPane);                  add(recentScriptsPane);
262                    
263                    add(Box.createRigidArea(new Dimension(0, 6)));
264                    
265                    JPanel p = new JPanel();
266                    p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS));
267                    
268                    JPanel p2 = new JPanel();
269                    p2.setLayout(new BorderLayout());
270                    p.add(p2);
271                    p.add(btnAdvanced);
272                    p.setAlignmentX(JPanel.LEFT_ALIGNMENT);
273                    add(p);
274                    
275                  add(Box.createGlue());                  add(Box.createGlue());
276                                    
277                  setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6));                  setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6));
278                    
279                    btnAdvanced.addActionListener(new ActionListener() {
280                            public void
281                            actionPerformed(ActionEvent e) { showAdvancedProperties(); }
282                    });
283            }
284            
285            private void
286            showAdvancedProperties() {
287                    new JSAdvancedGeneralPropsDlg(owner).setVisible(true);
288          }          }
289                    
290          protected void          protected void

Legend:
Removed from v.1766  
changed lines
  Added in v.1767

  ViewVC Help
Powered by ViewVC