🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10299

Radio Button Group

#10299
From: Joe Reiss
Date: Wed, 13 Oct 1999 00:00
26 lines
1248 bytes
Hi

I'm trying to set up a radiobutton group with the following code with no
luck.

1   JRadioButton jrbDisplayDomainNames = new JRadioButton("Domain
Names",true);
 2  JRadioButton jrbDomainDescriptions = new JRadioButton("Domain &
description",false);
 3   ButtonGroup  group         = new ButtonGroup();
 4  group.add(jrbDisplayDomainNames);
 5  group.add(jrbDomainDescriptions);

When I compile Iget the following messages:

4 invalid method declaration
4 illegal start of type
5 invalid method declaration
5 illegal start of type

I'm going according to ex. stuff I've seen (JFC swing tutorial)-Sun and
other books.  Seems like straightfoward thing to do.

TIA,
Joe
(frustrated Delphi guy)
Technical Details
Message-ID: <3804C338.C3DCDD54@popd.ix.netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e9fe56bb5f5efeec,start
X-Google-Attributes: gid111d45,public
From: Joe Reiss <medidata@popd.ix.netcom.com>
Subject: Radio Button Group
Date: 1999/10/13
Message-ID: <3804C338.C3DCDD54@popd.ix.netcom.com>
X-Deja-AN: 536318222
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Reply-To: medidata@ix.netcom.com
Newsgroups: borland.public.jbuilder.java.swing