Article View: comp.lang.java.gui
Article #46Problem with the ButtonGroup
From: George Wilson Mathias
Date: Thu, 13 Jan 2000 00:00
Date: Thu, 13 Jan 2000 00:00
17 lines
1369 bytes
1369 bytes
Hello all, I have a buttonGroup, which has 3 buttons associated with it. User selects one of the button in that group and if User selects "Undo" all the buttons must be deselcted. I tried to use button.setSelected(false) to all three buttons, didn't seem to work. Then I said : buttonGroup.setSelected(new DefaultButtonModel(), false); This didn't work either. Can you please tell me how can I de-select all the buttons in a Button programmatically. This is really bugging me for a while now. Thanks a lot in-advance. George Mathias george.mathias@wcom.com
Technical Details
Message-ID:
<387DFF96.CACBE2B6@mci.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,45995627a1156786,start X-Google-Attributes: gid111d45,public X-Google-Thread: 10a146,45995627a1156786,start X-Google-Attributes: gid10a146,public X-Google-Thread: 10fd6d,45995627a1156786,start X-Google-Attributes: gid10fd6d,public From: George Wilson Mathias <george.mathias@mci.com> Subject: Problem with the ButtonGroup Date: 2000/01/13 Message-ID: <387DFF96.CACBE2B6@mci.com> X-Deja-AN: 572156342 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: pm02news 947781458 166.44.43.40 (Thu, 13 Jan 2000 16:37:38 GMT) MIME-Version: 1.0 NNTP-Posting-Date: Thu, 13 Jan 2000 16:37:38 GMT Newsgroups: comp.lang.java.gui,borland.public.jbuilder.java.swing,comp.lang.java.programmer