/[classpath]/classpath/javax/swing/JProgressBar.java
ViewVC logotype

Diff of /classpath/javax/swing/JProgressBar.java

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

revision 1.11 by mark, Sat Jul 2 20:32:48 2005 UTC revision 1.12 by trebligd, Thu Jul 7 11:37:45 2005 UTC
# Line 88  public class JProgressBar extends JCompo Line 88  public class JProgressBar extends JCompo
88        
89      /**      /**
90       * Constructor AccessibleJProgressBar       * Constructor AccessibleJProgressBar
      *  
      * @param component TODO  
91       */       */
92      protected AccessibleJProgressBar()      protected AccessibleJProgressBar()
93      {      {
# Line 200  public class JProgressBar extends JCompo Line 198  public class JProgressBar extends JCompo
198     */     */
199    public JProgressBar()    public JProgressBar()
200    {    {
201      this(0, 100, HORIZONTAL);      this(HORIZONTAL, 0, 100);
202    }    }
203    
204    /**    /**
# Line 208  public class JProgressBar extends JCompo Line 206  public class JProgressBar extends JCompo
206     * a maximum of 100, and the given orientation.     * a maximum of 100, and the given orientation.
207     *     *
208     * @param orientation The orientation of the JProgressBar.     * @param orientation The orientation of the JProgressBar.
209       *
210       * @throws IllegalArgumentException if <code>orientation</code> is not either
211       *         {@link #HORIZONTAL} or {@link #VERTICAL}.
212     */     */
213    public JProgressBar(int orientation)    public JProgressBar(int orientation)
214    {    {
215      this(0, 100, orientation);      this(orientation, 0, 100);
216    }    }
217    
218    /**    /**
# Line 223  public class JProgressBar extends JCompo Line 224  public class JProgressBar extends JCompo
224     */     */
225    public JProgressBar(int minimum, int maximum)    public JProgressBar(int minimum, int maximum)
226    {    {
227      this(minimum, maximum, HORIZONTAL);      this(HORIZONTAL, minimum, maximum);
228    }    }
229    
230    /**    /**
# Line 233  public class JProgressBar extends JCompo Line 234  public class JProgressBar extends JCompo
234     * @param minimum The minimum of the JProgressBar.     * @param minimum The minimum of the JProgressBar.
235     * @param maximum The maximum of the JProgressBar.     * @param maximum The maximum of the JProgressBar.
236     * @param orientation The orientation of the JProgressBar.     * @param orientation The orientation of the JProgressBar.
237       *
238       * @throws IllegalArgumentException if <code>orientation</code> is not either
239       *         {@link #HORIZONTAL} or {@link #VERTICAL}.
240     */     */
241    public JProgressBar(int minimum, int maximum, int orientation)    public JProgressBar(int orientation, int minimum, int maximum)
242    {    {
243      model = new DefaultBoundedRangeModel(minimum, 0, minimum, maximum);      model = new DefaultBoundedRangeModel(minimum, 0, minimum, maximum);
244      if (orientation != HORIZONTAL && orientation != VERTICAL)      if (orientation != HORIZONTAL && orientation != VERTICAL)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26