GeeCON Prague 2014*
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


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
 
GeeCON Prague 2014
 
subject: jbutton refresh