🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Help with awt checkbox

#16159
From: Aslak Poppe
Date: Tue, 23 Mar 1999 00:00
39 lines
1351 bytes

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
Technical Details
Message-ID: <36F7501C.1750634F@radsoft.no>
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: f74b3,bc8d3217e380a38c,start
X-Google-Attributes: gidf74b3,public
From: Aslak Poppe <aslak.poppe@radsoft.no>
Subject: Help with awt checkbox
Date: 1999/03/23
Message-ID: <36F7501C.1750634F@radsoft.no>
X-Deja-AN: 457900050
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: RADsoft AS
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language