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 / April 2005

Tip: Looking for answers? Try searching our database.

Event handler problem in JTable

Thread view: 
Mike - 29 Apr 2005 10:43 GMT
Hi,

I am using an extension of the JTable (JXTable, from Sun's JDesktop
Network Components).  I am able to use event handling in this class.
One of the columns within this table has cells containing a custom
JPanel with their own event handling capability.  The only thing is
the event handling methods in the JPanels within the table cells are
not executed.  For example, when clicking on the table cell, the event
picked up is a table event rather than the JPanel (cell) event.

Can anyone offer any advice on this?

Best wishes, mike
John McGrath - 30 Apr 2005 05:05 GMT
> I am using an extension of the JTable (JXTable, from Sun's JDesktop
> Network Components).  I am able to use event handling in this class.
[quoted text clipped - 3 lines]
> not executed.  For example, when clicking on the table cell, the event
> picked up is a table event rather than the JPanel (cell) event.

I am not familiar with JXTable, but it sounds like you are talking about
using a TableCellRenderer based on a JPanel.  Assuming that is the case,
events will not be generated by the JPanel because it is never realized.
It is just used to paint the cell.

Signature

Regards,

John McGrath



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.