summaryrefslogtreecommitdiff
path: root/javax/swing/JComponent.java
diff options
context:
space:
mode:
authorAudrius Meskauskas <audriusa@Bioinformatics.org>2006-02-15 21:58:28 +0000
committerAudrius Meskauskas <audriusa@Bioinformatics.org>2006-02-15 21:58:28 +0000
commit5992cabb9a896bd7a1538f4104dc55f86bf016c5 (patch)
tree40589f985766db3dd98548e4fdbb20a2a798b08b /javax/swing/JComponent.java
parent4f56e7fc1f37a8c811cd571b64e2b3afd26c0e3b (diff)
downloadclasspath-5992cabb9a896bd7a1538f4104dc55f86bf016c5.tar.gz
Returning to the version 1.101. The revert to the 1.100 was introduced by chance.
Diffstat (limited to 'javax/swing/JComponent.java')
-rw-r--r--javax/swing/JComponent.java14
1 files changed, 4 insertions, 10 deletions
diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java
index 7f8fd3a47..0e11eb83c 100644
--- a/javax/swing/JComponent.java
+++ b/javax/swing/JComponent.java
@@ -1619,11 +1619,10 @@ public abstract class JComponent extends Container implements Serializable
// optimizedDrawingEnabled (== it tiles its children).
if (! isOptimizedDrawingEnabled())
{
- Rectangle clip = g.getClipBounds();
for (int i = 0; i < children.length; i++)
{
Rectangle childBounds = children[i].getBounds();
- if (children[i].isOpaque()
+ if (children[i].isOpaque() && children[i].isVisible()
&& SwingUtilities.isRectangleContainingRectangle(childBounds,
g.getClipBounds()))
{
@@ -2206,12 +2205,8 @@ public abstract class JComponent extends Container implements Serializable
*/
public void repaint(long tm, int x, int y, int width, int height)
{
- Rectangle dirty = new Rectangle(x, y, width, height);
- Rectangle vis = getVisibleRect();
- dirty = dirty.intersection(vis);
- RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y,
- dirty.width,
- dirty.height);
+ RepaintManager.currentManager(this).addDirtyRegion(this, x, y, width,
+ height);
}
/**
@@ -2223,8 +2218,7 @@ public abstract class JComponent extends Container implements Serializable
*/
public void repaint(Rectangle r)
{
- repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(),
- (int) r.getHeight());
+ repaint(0, r.x, r.y, r.width, r.height);
}
/**