This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes jbutton refresh 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 "jbutton refresh" Watch "jbutton refresh" New topic
Author

jbutton refresh

mickey hendrix
Greenhorn

Joined: May 08, 2005
Posts: 19
hello to everybody....
I have a problem when i select a radiobutton...
I have 2 radio butto on a ButtonGroup and when I select one of this......
I want for another event ( combo,button ) to reset the to button ALL disabled but It seems not to go all righ and the selection remains.....How can I refresh to a disabled status all the 2 radiobutton?
thanks for help......
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
create an extra radiobutton, add it to the buttongroup,
but do NOT add it to any container (i.e invisible)

when you want to have both of the 'visible' radiobuttons showing 'not selected',
have this line in your code

[extraRadioButton].setSelected(true);
mickey hendrix
Greenhorn

Joined: May 08, 2005
Posts: 19
this is a very good idea...thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jbutton refresh