Re: Event handler problem in JTable
- From: "John McGrath" <ng@xxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 04:05:27 GMT
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
.
- References:
- Event handler problem in JTable
- From: Mike
- Event handler problem in JTable
- Prev by Date: Re: JMenu holding JButton instances - bug with 5.0?
- Next by Date: offscreen JFrame snapshot - missing window decorations
- Previous by thread: Event handler problem in JTable
- Next by thread: TableSorter and generics
- Index(es):