summaryrefslogtreecommitdiffstats
path: root/libjava/javax/swing/plaf/basic/BasicProgressBarUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/plaf/basic/BasicProgressBarUI.java')
-rw-r--r--libjava/javax/swing/plaf/basic/BasicProgressBarUI.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/libjava/javax/swing/plaf/basic/BasicProgressBarUI.java b/libjava/javax/swing/plaf/basic/BasicProgressBarUI.java
index 4a74617726d..d171917172f 100644
--- a/libjava/javax/swing/plaf/basic/BasicProgressBarUI.java
+++ b/libjava/javax/swing/plaf/basic/BasicProgressBarUI.java
@@ -134,8 +134,7 @@ public class BasicProgressBarUI extends ProgressBarUI
}
/** The timer used to move the bouncing box. */
- private transient Timer animationTimer = new Timer();
-
+ private transient Timer animationTimer;
// The total number of frames must be an even number.
// The total number of frames is calculated from
@@ -681,6 +680,8 @@ public class BasicProgressBarUI extends ProgressBarUI
* This method starts the animation timer. It is called
* when the propertyChangeListener detects that the progressBar
* has changed to indeterminate mode.
+ *
+ * @since 1.4
*/
protected void startAnimationTimer()
{
@@ -692,6 +693,8 @@ public class BasicProgressBarUI extends ProgressBarUI
* This method stops the animation timer. It is called when
* the propertyChangeListener detects that the progressBar
* has changed to determinate mode.
+ *
+ * @since 1.4
*/
protected void stopAnimationTimer()
{
@@ -794,7 +797,7 @@ public class BasicProgressBarUI extends ProgressBarUI
{
progressBar = (JProgressBar) c;
- animationTimer = new Timer();
+ animationTimer = new Timer(200, null);
animationTimer.setRepeats(true);
installDefaults();
OpenPOWER on IntegriCloud