jdk/src/java.desktop/share/classes/javax/swing/JProgressBar.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 32865 f9cb6e427f9e
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   328      * @see #setIndeterminate
   328      * @see #setIndeterminate
   329      */
   329      */
   330     public JProgressBar(int orient, int min, int max)
   330     public JProgressBar(int orient, int min, int max)
   331     {
   331     {
   332         // Creating the model this way is a bit simplistic, but
   332         // Creating the model this way is a bit simplistic, but
   333         //  I believe that it is the the most common usage of this
   333         //  I believe that it is the most common usage of this
   334         //  component - it's what people will expect.
   334         //  component - it's what people will expect.
   335         setModel(new DefaultBoundedRangeModel(min, 0, min, max));
   335         setModel(new DefaultBoundedRangeModel(min, 0, min, max));
   336         updateUI();
   336         updateUI();
   337 
   337 
   338         setOrientation(orient);      // documented with set/getOrientation()
   338         setOrientation(orient);      // documented with set/getOrientation()