OSDN Git Service

2006-06-13 Thomas Fitzsimmons <fitzsim@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / classpath / javax / swing / plaf / basic / BasicProgressBarUI.java
index 2518a91..df4c3ae 100644 (file)
@@ -384,7 +384,7 @@ public class BasicProgressBarUI extends ProgressBarUI
       }
 
     int index = getAnimationIndex();
-    if (animationIndex > (numFrames) / 2)
+    if (animationIndex > numFrames / 2)
       index = numFrames - getAnimationIndex();
 
     if (progressBar.getOrientation() == JProgressBar.HORIZONTAL)
@@ -671,7 +671,8 @@ public class BasicProgressBarUI extends ProgressBarUI
        else
          {
            g.setColor(c.getForeground());
-           g.fillRect(vr.x, vr.y + vr.height - amountFull, vr.width, amountFull);
+           g.fillRect(vr.x, vr.y + vr.height - amountFull, vr.width, 
+                       amountFull);
          }
 
     if (progressBar.isStringPainted() && !progressBar.getString().equals(""))