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