}
int index = getAnimationIndex();
- if (animationIndex > (numFrames) / 2)
+ if (animationIndex > numFrames / 2)
index = numFrames - getAnimationIndex();
if (progressBar.getOrientation() == JProgressBar.HORIZONTAL)
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(""))