File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCheckBox boolean reset?

 
LiL Kunji
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i initialize JCheckBox foo = new JCheckBox("more foo",false);
now later in the program i give the user a reset button.
how do i reset this box back to false and the checkmark will be
taken out. thank you
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lil,
Try this:
foo.setSelected( false ); // clear checkmark
foo.setSelected( true ); // sets checkmark
Regards,
Manfred.
 
LiL Kunji
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awesome!!! thank u very much. that did the trick completely!!!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic