| 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.
|
 |
 |
|
|
subject: How to disable buttonGroup
|
|
|