Commit 627e4e5f by David Jee Committed by David Jee

2004-01-07 David Jee <djee@redhat.com>

    * java/awt/Container.java
    (update): Clear only the clipped region, instead of clearing the
    entire Container.
    (visitChildren): Visit children in descending order.

From-SVN: r75517
parent 47527624
2004-01-07 David Jee <djee@redhat.com>
* java/awt/Container.java
(update): Clear only the clipped region, instead of clearing the
entire Container.
(visitChildren): Visit children in descending order.
2004-01-07 Michael Koch <konqueror@gmx.de> 2004-01-07 Michael Koch <konqueror@gmx.de>
* java/lang/reflect/Array.java: Merged documentation with classpath. * java/lang/reflect/Array.java: Merged documentation with classpath.
......
...@@ -677,7 +677,11 @@ public class Container extends Component ...@@ -677,7 +677,11 @@ public class Container extends Component
*/ */
public void update(Graphics g) public void update(Graphics g)
{ {
g.clearRect(0, 0, width, height); Rectangle clip = g.getClipBounds();
if (clip == null)
g.clearRect(0, 0, width, height);
else
g.clearRect(clip.x, clip.y, clip.width, clip.height);
super.update(g); super.update(g);
} }
...@@ -1196,7 +1200,7 @@ public class Container extends Component ...@@ -1196,7 +1200,7 @@ public class Container extends Component
{ {
synchronized (getTreeLock ()) synchronized (getTreeLock ())
{ {
for (int i = 0; i < ncomponents; ++i) for (int i = ncomponents - 1; i >= 0; --i)
{ {
Component comp = component[i]; Component comp = component[i];
boolean applicable = comp.isVisible() boolean applicable = comp.isVisible()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment