aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorScott Gilbertson <sgilbertson@gcc.gnu.org>2004-01-29 22:11:26 +0000
committerScott Gilbertson <sgilbertson@gcc.gnu.org>2004-01-29 22:11:26 +0000
commit5176577ddc14f55314816d17cf403b8db241cbfd (patch)
tree360f93e05cf7f52d13fce92640d3a10533985921 /libjava
parent20f5dc60553e842b96444f94348055d95c72b95c (diff)
downloadgcc-5176577ddc14f55314816d17cf403b8db241cbfd.zip
gcc-5176577ddc14f55314816d17cf403b8db241cbfd.tar.gz
gcc-5176577ddc14f55314816d17cf403b8db241cbfd.tar.bz2
Index: libjava/ChangeLog
from Scott Gilbertson <scottg@mantatest.com> * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented. From-SVN: r76899
Diffstat (limited to 'libjava')
-rw-r--r--libjava/gnu/awt/xlib/XCanvasPeer.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/libjava/gnu/awt/xlib/XCanvasPeer.java b/libjava/gnu/awt/xlib/XCanvasPeer.java
index 6ecf7bf..18edaf5 100644
--- a/libjava/gnu/awt/xlib/XCanvasPeer.java
+++ b/libjava/gnu/awt/xlib/XCanvasPeer.java
@@ -279,6 +279,32 @@ public class XCanvasPeer implements CanvasPeer
public void handleEvent(AWTEvent event)
{
+ int id = event.getID ();
+
+ switch (id)
+ {
+ case PaintEvent.PAINT:
+ case PaintEvent.UPDATE:
+ {
+ try
+ {
+ Graphics g = getGraphics ();
+ g.setClip (((PaintEvent)event).getUpdateRect ());
+
+ if (id == PaintEvent.PAINT)
+ component.paint (g);
+ else
+ component.update (g);
+
+ g.dispose ();
+ }
+ catch (InternalError e)
+ {
+ System.err.println (e);
+ }
+ }
+ break;
+ }
}
public boolean isFocusTraversable()