/[svn]/jsampler/trunk/src/org/jsampler/view/std/JSProgressDlg.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/std/JSProgressDlg.java

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

revision 1785 by iliev, Fri Aug 10 20:24:23 2007 UTC revision 1786 by iliev, Wed Oct 8 22:38:15 2008 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2007 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 90  public class JSProgressDlg extends JDial Line 90  public class JSProgressDlg extends JDial
90                          actionPerformed(ActionEvent e) { onCancel(); }                          actionPerformed(ActionEvent e) { onCancel(); }
91                  });                  });
92                                    
                 pack();  
93                  Dimension d = getPreferredSize();                  Dimension d = getPreferredSize();
94                  d.width = d.width > 300 ? d.width : 300;                  d.width = d.width > 300 ? d.width : 300;
95                  setSize(d);                  setPreferredSize(d);
96                    
97                    pack();
98                  setResizable(false);                  setResizable(false);
99                                    
100                  setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame()));                  setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame()));
# Line 123  public class JSProgressDlg extends JDial Line 124  public class JSProgressDlg extends JDial
124           * Sets the progress string.           * Sets the progress string.
125           * @param s The value of the progress string.           * @param s The value of the progress string.
126           */           */
127            @Override
128          public void          public void
129          setString(String s) { l.setText(s); }          setString(String s) { l.setText(s); }
130                    
# Line 138  public class JSProgressDlg extends JDial Line 140  public class JSProgressDlg extends JDial
140          }          }
141                    
142          /** Starts to indicate that an operation is ongoing. */          /** Starts to indicate that an operation is ongoing. */
143            @Override
144          public void          public void
145          start() {          start() {
146                  setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame()));                  setLocation(JuifeUtils.centerLocation(this, CC.getMainFrame()));
# Line 152  public class JSProgressDlg extends JDial Line 155  public class JSProgressDlg extends JDial
155          }          }
156                    
157          /** Stops the indication that an operation is ongoing. */          /** Stops the indication that an operation is ongoing. */
158            @Override
159          public void          public void
160          stop() {          stop() {
161                  SwingUtilities.invokeLater(new Runnable() {                  SwingUtilities.invokeLater(new Runnable() {

Legend:
Removed from v.1785  
changed lines
  Added in v.1786

  ViewVC Help
Powered by ViewVC