Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SWT check boxes  RSS feed

 
vijay shanker
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

is there any way i can use check boxes on my page and get only one of the four check box selected at any one time.

if there exists any thing like that please suggest me.

thanks.
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That actually sounds like the behaviour of JRadioButtons, in a Group. (Or maybe a ButtonGroup).

If you insist on using check boxes like that, see whether you can put check boxes into a ButtonGroup and whether you can add a Listener which un-checks the others. But radio Buttons sound better.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!