 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
bitshit Guest
|
Posted: Sun Sep 04, 2005 5:51 pm Post subject: awt lightweight/heavyweight components |
|
|
Hi,
I have an applet which has a canvas added to it. On this canvas I draw all
my images/ app output. I've created my own lightweight component (popup)
which shows a popup on the screen and listens for mousevents.
The problem that I have is that when I add the canvas to the applet, I
cannot receive any events in my custom components (when I add them to the
applet container without the canvas it works just fine). I believe that this
is because when a heavycomponent (canvas) overlaps a lightweight component
(my popup) it will "steal" all events from being delivered to the
lightweight comp.
Is there any way around this? (I can't use swing because I have to stick to
awt1.1 )
I also have to use the canvas (for use with bufferstrategy if available on
the user's jvm)
Thanks in advance!
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|