Index: libjava/ChangeLog
from Scott Gilbertson <scottg@mantatest.com> * gnu/awt/xlib/XCanvasPeer.java (handleEvent): Implemented. From-SVN: r76899
This commit is contained in:
parent
20f5dc6055
commit
5176577ddc
@ -279,6 +279,32 @@ public class XCanvasPeer implements CanvasPeer
|
|||||||
|
|
||||||
public void handleEvent(AWTEvent event)
|
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()
|
public boolean isFocusTraversable()
|
||||||
|
Loading…
Reference in New Issue
Block a user