Article View: borland.public.jbuilder.java.swing
Article #12218Re: How to 'unite' 2 radio buttons
From: C Javier Castro Peña
Date: Mon, 15 Feb 1999 00:00
Date: Mon, 15 Feb 1999 00:00
24 lines
1476 bytes
1476 bytes
Thanks, it works and is easy to implement: JRadioButton denyRadio = new JRadioButton(); JRadioButton allowRadio = new JRadioButton(); ButtonGroup radioGroup = new ButtonGroup(); . . . radioGroup.add(allowRadio); radioGroup.add(denyRadio); Matt Krevs wrote: > > I dont know how to do it graphically but you need to add the radio buttons > to a ButtonGroup so that they work together > > C Javier Castro Pe�a wrote in message <36C4DB52.12499D7C@ittc.ukans.edu>... > >I need to have 2 radio buttons, so only one can be clicked at a time. > >Jbuilder allows to put 2 separated radio buttons, how can I link them? I > >want to do something such as the checkbox panel from jbcl, but > >lightweight (that's why I am not using it). > > > >(please, forward answer to jcaspen@iname.com)
Technical Details
Message-ID:
<36C85B74.4D2BBFB1@ittc.ukans.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36C4DB52.12499D7C@ittc.ukans.edu> <7a8cta$3649@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,889acf4e0eb535e8 X-Google-Attributes: gid111d45,public From: C Javier Castro Peña <jcaspen@ittc.ukans.edu> Subject: Re: How to 'unite' 2 radio buttons Date: 1999/02/15 Message-ID: <36C85B74.4D2BBFB1@ittc.ukans.edu> X-Deja-AN: 444645110 Content-Transfer-Encoding: 8bit References: <36C4DB52.12499D7C@ittc.ukans.edu> <7a8cta$3649@forums.borland.com> To: Matt Krevs <mattkrevs@flex.com.au> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: ITTC - University of Kansas Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing