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
This commit is contained in:
parent
4752762407
commit
627e4e5fc2
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
@ -677,7 +677,11 @@ public class Container extends Component
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@ -1196,7 +1200,7 @@ public class Container extends Component
|
||||
{
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user