Re: Event handler problem in JTable



On 4/29/2005 at 5:43:35 AM, Mike wrote:

> 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.

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.

--
Regards,

John McGrath
.