equal
deleted
inserted
replaced
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() |