mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
Index: libjava/ChangeLog
from Scott Gilbertson <scottg@mantatest.com> * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented. From-SVN: r76899
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user