Hi,
I have already known how to display JCheckBox in JTable. It's not just
directly put the JCheckBox in the JTable, but render the JCheckBox
when JTable is displayed.
But if I want to disable JCheckBox, by using JCheckBox's method
setEnabled( false ), how can I display this effect in the JTable?
Thank you.
Roedy Green - 12 Sep 2007 11:45 GMT
>But if I want to disable JCheckBox, by using JCheckBox's method
>setEnabled( false ), how can I display this effect in the JTable?
you would write a custom renderer, that uses a disabled JCheckBox.
There might also be some sort of setEditable(false) or
setDisabled(false) you could use part of the JTable suite.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com