Article View: borland.public.jbuilder.java.language
Article #7730Handling events issue
From: KK
Date: Mon, 21 May 2001 01:40
Date: Mon, 21 May 2001 01:40
12 lines
1446 bytes
1446 bytes
Dear all: I find it difficult in handling events when so many events have the same codes. For example, if I write a form with a hundred text boxes and I want to check if any of them has been modified in order to enable the "Save" button, I have to write same codes in the of "_keyTyped" events of these hundred text boxes. In VB, we can an indexed text boxes from 0 to 99 and write a line of code for these text boxes. I don't think Java has the same feature. But anyway, is there a simplier way to do so? Thanks for your help. Ken
Technical Details
Message-ID:
<3b087273_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.gamma.ru!Gamma.RU!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,6b38d73c5e82a869,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-20 19:10:03 PST From: "KK" <kk@hotmail.com> Newsgroups: borland.public.jbuilder.java.language Subject: Handling events issue Date: Mon, 21 May 2001 09:40:25 +0800 Lines: 16 Organization: CDS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 NNTP-Posting-Host: 158.140.230.175 Message-ID: <3b087273_1@dnews> X-Trace: dnews 990409331 158.140.230.175 (20 May 2001 18:42:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.gamma.ru!Gamma.RU!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews