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 / GUI / June 2005

Tip: Looking for answers? Try searching our database.

JTree, mouse event  and complex cells

Thread view: 
grzegorz.drozdz@gmail.com - 29 Jun 2005 11:10 GMT
Hello,
My tree cell renderer creates complex cell which contains 3 JLabels.
How do I add mouse listener to one of these labels? By default mouse
event is registered only by the tree, how do I pass this event to
appropriate label?
Best regards
Lynx
Christian Kaufhold - 29 Jun 2005 12:50 GMT
> My tree cell renderer creates complex cell which contains 3 JLabels.
> How do I add mouse listener to one of these labels? By default mouse
> event is registered only by the tree, how do I pass this event to
> appropriate label?

You use a TreeCellEditor.

Christian


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.