The moose likes Swing / AWT / SWT / JFace and the fly likes JCheck Box Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "JCheck Box" Watch "JCheck Box" New topic
Author

JCheck Box

Venkatesh Raman
Greenhorn

Joined: Aug 29, 2001
Posts: 8
I have a Jcheckbox on a Jtable which is a DefaultTableModel. By default i see true. when I click on the checkbox I see true or false. I just wanted only the check box to appear and I wanted to remove the true or false? How can i do that ?
I also need to center the checkbox.
Please help
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Are you using boolean or Boolean? Boolean is what you need to use. The check box will happen autimatically after that.
 
 
subject: JCheck Box
 
Threads others viewed
Check Box Handling
Issue in passing the values to action class, when check box is disabled.
CheckBox state
JTable And CheckBox
check box
IntelliJ Java IDE