aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to disable buttonGroup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to disable buttonGroup" Watch "How to disable buttonGroup" New topic
Author

How to disable buttonGroup

Kevin Lefebvre
Greenhorn

Joined: Feb 17, 2003
Posts: 2
Hello,
I am looking for a way to disable a buttonGroup, but can
not seem to find a disable option. Basically what I am looking for
is to have the entire group disabled (grayed out) When the user
has enters information into a text field then I want the buttonGroup
enabled.
Any ideas on how to disable the entire group?
Thanks,
Kevin
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Welcome to JavaRanch, Kevin!
I'm moving this to the Swing / JFC / AWT forum where they just love to pour over this GUI stuff...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You can get an Enumeration of all the buttons by calling getElements() on the ButtonGroup. Just loop through this Enumeration and call setDisabled( false ) on all of them.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to disable buttonGroup