summaryrefslogtreecommitdiff
path: root/libjava/classpath/javax/swing/plaf/ComponentUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/swing/plaf/ComponentUI.java')
-rw-r--r--libjava/classpath/javax/swing/plaf/ComponentUI.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/libjava/classpath/javax/swing/plaf/ComponentUI.java b/libjava/classpath/javax/swing/plaf/ComponentUI.java
index 6a736f258a2..be7b68a440c 100644
--- a/libjava/classpath/javax/swing/plaf/ComponentUI.java
+++ b/libjava/classpath/javax/swing/plaf/ComponentUI.java
@@ -41,7 +41,6 @@ package javax.swing.plaf;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
-import java.awt.Rectangle;
import javax.accessibility.Accessible;
import javax.swing.JComponent;
@@ -185,12 +184,12 @@ public abstract class ComponentUI
public void update(Graphics g, JComponent c)
{
if (c.isOpaque())
- {
- Color oldColor = g.getColor();
- g.setColor(c.getBackground());
- g.fillRect(0, 0, c.getWidth(), c.getHeight());
- g.setColor(oldColor);
- }
+ {
+ Color oldColor = g.getColor();
+ g.setColor(c.getBackground());
+ g.fillRect(0, 0, c.getWidth(), c.getHeight());
+ g.setColor(oldColor);
+ }
paint(g, c);
}