File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JCheckBox problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCheckBox problem" Watch "JCheckBox problem" New topic
Author

JCheckBox problem

Vikas Kumar Sahu
Ranch Hand

Joined: Dec 02, 2003
Posts: 59
Hi,
I am facing one problem, what I m doing is,
I am instantiating number of check boxes depending upon the size of the array,
and adding these checkboxes into the jpanel which layout i have set as gridlayout,
it is added and working fine , but the problem is that,
WHEN I CLICK ANY WHERE EXCEPT OVER THE CHECKBOX THAT CHECK BOXES IS SELECTED,
I WANT THAT THESE CHECK BOX WILL SELECTED WHEN I CLICK ONLY OVER THESE CHECKBOX.

:roll:
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
Don't get me started about those stupid light bulbs.
 
subject: JCheckBox problem