Nested CheckBox in Java

Posted by Shailesh Ahuja on Stack Overflow See other posts from Stack Overflow or by Shailesh Ahuja
Published on 2013-06-28T10:15:59Z Indexed on 2013/06/28 10:21 UTC
Read the original article Hit count: 230

Filed under:
|
|

I want to create a nested checkbox list. If the user checks the main item, all the sub-items under and get checked. If the user checks some of the sub-items, then a blue square appears inside the main items checkbox.
It should look something like this.
How do I do that in Java 1.6? Can I use swing or any external library? I would like to choose the easiest and the fastest way to achieve this? My aim is to create only 1 level of nesting.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing