Re: JCheckbox in a JTable
- From: "nblloyd@xxxxxxxxx" <nblloyd@xxxxxxxxx>
- Date: 30 Jun 2006 08:39:59 -0700
The only way I can think of doing this is by removing the default mouse
listener from the checkbox and implementing your own. All the other
listeners seem to get the event only after the box has been checked, so
this may be your best bet. The downside is you lose the nice roll-over
effects and such.
Maybe someone else has a better suggestion though.
- Natasha -
layne79 wrote:
Hi,
my JTable has a column containing a JCheckBox (with a renderer and an
editor associated). Until now, it works by checking/unchecking the
checkbox in any of the rows, but I don't know how to let a JDialog
appear once I click on a checkBox, without selecting the checkBox.
In other words, I want to click on the checkBox oonly in order to let a
JDialog appear, then I want the checkBox be checked (selected) only
after I have pressed the button OK in the JDialog.
Now I obtain the JCheckBox selected just after I click on it and the
JDialog appears.
Hope I explained the problem.
Thanks in advance
.
- Follow-Ups:
- Re: JCheckbox in a JTable
- From: Vova Reznik
- Re: JCheckbox in a JTable
- References:
- JCheckbox in a JTable
- From: layne79
- JCheckbox in a JTable
- Prev by Date: Re: How to detect double-click mouse events in Swing?
- Next by Date: Re: JCheckbox in a JTable
- Previous by thread: JCheckbox in a JTable
- Next by thread: Re: JCheckbox in a JTable
- Index(es):