Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes how to bind a int value to a jcheckbox ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to bind a int value to a jcheckbox ?" Watch "how to bind a int value to a jcheckbox ?" New topic
Author

how to bind a int value to a jcheckbox ?

Kevin Pang
Ranch Hand

Joined: Mar 01, 2005
Posts: 38
how to bind a int value to a jcheckbox? when user check the box, we can get the value of that checkbox.

Thanks.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
setActionCommand(String.valueOf(yourIntValue))
 
wood burning stoves
 
subject: how to bind a int value to a jcheckbox ?
 
Similar Threads
question about jcheckbox
Problem in JTable row selection
TableCellRenderer setBackground of selected cell not working
How to check whether the JchJCheckBox
JTable - JCheckBox