How JTable display disabled JCheckBox?

I

iherage

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

Roedy Green

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top