Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Android Security Essentials Live Lessons this week in the Android forum!
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
Similar Threads
Disable the radio button from radio button
Need Help for JSP
Mnemonic related issue
problem h:selectOneRadio