Re: click a button in a JTable
- From: jonck@xxxxxxxxxxxxxxx
- Date: 17 Nov 2005 02:12:12 -0800
> Well the event does not get fired, in fact when clicking the button
> doesn't even get pained as "pressed".
Yes, this is "correct" behavior, by which I mean this is as it's
apparently supposed to be, though it would be nice if it weren't. The
Component returned by a TableCellRenderer is only used by the JTable so
it knows how to draw that particular cell, it doesn't treat the
returned Component as an object (which is very considerate of the table
wouldn't you say? ;-) that can receive events and such.
Here is a previous thread that discussed this:
http://groups.google.com/group/comp.lang.java.programmer/browse_frm/thread/10de386ca83da9f2/c578b71789228f97?lnk=st&q=jtable+jbutton+group%3Acomp.lang.java.*&rnum=1&hl=en#c578b71789228f97
.
- Follow-Ups:
- Re: click a button in a JTable
- From: Roedy Green
- Re: click a button in a JTable
- References:
- click a button in a JTable
- From: Tomba
- Re: click a button in a JTable
- From: Roedy Green
- Re: click a button in a JTable
- From: Tomba
- click a button in a JTable
- Prev by Date: Re: JSpinner with DateModel, setValue not working ?
- Next by Date: Re: JSpinner with DateModel, setValue not working ?
- Previous by thread: Re: click a button in a JTable
- Next by thread: Re: click a button in a JTable
- Index(es):