🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16084

Re: Help with awt checkbox

#16084
From: salim
Date: Mon, 05 Apr 1999 00:00
43 lines
1869 bytes
You can use getState() or getSelectObjects()(if you have a checkboxgroup).

In article <36F7501C.1750634F@radsoft.no>,
  Aslak Poppe <aslak.poppe@radsoft.no> wrote:
>
>
> Good Morning newsgroup,
>
> I wonder if anybody could help me with something thats probably a
> trivial problem.
> I wrote an applet which uses several checkboxes.
> The checkboxes I used where not the awt checkbox.
> These checkboxes made the applet to big, and I'm now rewriting it using
> only awt components.
>
> Each checkbox should set the value of a bytevariable (not necessary only
> 0 or 1).
>
> Everyting worked fine with this code to set the flag depending on the
> checkbox is checked or unchecked.
>
>   void check1_1_itemStateChanged(ItemEvent e) {
>      if (check1_1.isChecked())
>      {Flag1_1=1;}
>      else{
>      Flag1_1=0;
>      }
>      calculateRutine1();
>   }
>
> But the function "isChecked" does not apply on the awt checkbox.
> How do I write the same procedyre for awt checkbox ???
>
> Best regards
>
> Aslak Poppe
>
> aslak.poppe@radsoft.no
>
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <7eb4e9$9os$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36F7501C.1750634F@radsoft.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,bc8d3217e380a38c
X-Google-Attributes: gidf74b3,public
From: salim@writeme.com
Subject: Re: Help with awt checkbox
Date: 1999/04/05
Message-ID: <7eb4e9$9os$1@nnrp1.dejanews.com>
X-Deja-AN: 462961512
References: <36F7501C.1750634F@radsoft.no>
X-Http-Proxy: 1.1 x8.dejanews.com:80 (Squid/1.1.22) for client 12.13.106.228
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Mon Apr 05 19:54:53 1999 GMT
Newsgroups: borland.public.jbuilder.java.language
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)