AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

awt lightweight/heavyweight components

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
bitshit
Guest





PostPosted: Sun Sep 04, 2005 5:51 pm    Post subject: awt lightweight/heavyweight components Reply with quote



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 Sad )
I also have to use the canvas (for use with bufferstrategy if available on
the user's jvm)

Thanks in advance!


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.