my dog learned polymorphism
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

jbutton refresh

mickey hendrix

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

mickey hendrix

Joined: May 08, 2005
Posts: 19
this is a very good idea...thanks
I agree. Here's the link:
subject: jbutton refresh
It's not a secret anymore!