Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCheckBox

 
Deyna Cegielski
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do u explicitly check the box?

e.g.

if(some condition = true){
check this box
}
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JCheckBox.html

scroll down to
"Methods inherited from class javax.swing.AbstractButton"

it is one of the set...() methods
(it will stand out)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic