Article View: borland.public.jbuilder.java.swing
Article #9497Right way to use setText() with loop statement ?
From: mus
Date: Wed, 29 Mar 2000 00:00
Date: Wed, 29 Mar 2000 00:00
18 lines
932 bytes
932 bytes
Hiii .. I trying to modify Label.text using loop statement.
Here is my code :
for (int i=0;i <100;i++) {
jLabel1.setText(Integer.toString(i));
repaint();
}
the problem is only 99 is displayed in jLabel1. While other value not
display at all. (I want to display value 1..10..99 sequentially).
any way to solve this problem /any comment...
--
Mustafa Afanddi
SLS
Tel: +6 (03) - 8996 5000 Ext: 4302
:))
Technical Details
Message-ID:
<8bsa5e$gp2@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ed1261101a8cb763,start X-Google-Attributes: gid111d45,public From: "mus" <mustafa@mimos.my> Subject: Right way to use setText() with loop statement ? Date: 2000/03/29 Message-ID: <8bsa5e$gp2@bornews.borland.com> X-Deja-AN: 603757701 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Organization: mimos X-MSMail-Priority: Normal Reply-To: "mus" <mustafa@mimos.my> Newsgroups: borland.public.jbuilder.java.swing