+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>
* java/lang/reflect/Array.java: Merged documentation with classpath.
*/
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);
}
{
synchronized (getTreeLock ())
{
- for (int i = 0; i < ncomponents; ++i)
+ for (int i = ncomponents - 1; i >= 0; --i)
{
Component comp = component[i];
boolean applicable = comp.isVisible()