Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2004

Tip: Looking for answers? Try searching our database.

KeyEvent problem

Thread view: 
Boniface Frederic - 14 Apr 2004 09:41 GMT
Hi,

When i add a JToolBar to my JFrame, i loose the KeyEvent. Is it normal ?

Any information is greatly appreciated!

Thanks,
Roedy Green - 16 Apr 2004 00:18 GMT
>When i add a JToolBar to my JFrame, i loose the KeyEvent. Is it normal ?
>
>Any information is greatly appreciated!

See http://mindprod.com/jgloss/event11.html

There is a complicated system by which various layers of container and
component see events and decide who sees what.

The usual process is for a container to field a mouse event and then
decide which of its component's it belongs to then dispatch it to that
Component.  Some components such as JButtons convert low level events
such as MouseClicks into ActionEvents, so you don't see the individual
MouseClicks at the application level.

It has been a while since I wrote that essay, so it is not as clear as
it once was.  The best way to make sense of it is to use a tool that
lets you navigate Sun's AWT code, so you can figure out what each of
the methods do.  You can also read my notes on each method in the Java
glossary such as http://mindprod.com/jgloss/validate.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.