Index: libjava/ChangeLog

from  Scott Gilbertson  <scottg@mantatest.com>

	* gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented.

From-SVN: r76899
This commit is contained in:
Scott Gilbertson 2004-01-29 22:11:26 +00:00
parent 20f5dc6055
commit 5176577ddc
1 changed files with 26 additions and 0 deletions

View File

@ -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()