Article View: comp.lang.java.gui
Article #129Re: TOO SLOW list.add(element) OR choice.add(element)
From: mY
Date: Fri, 29 Jan 1999 00:00
Date: Fri, 29 Jan 1999 00:00
19 lines
1581 bytes
1581 bytes
It's possible the there is Listener already attached to them before
you add item. Try removing those before hand.
On Thu, 28 Jan 1999 17:35:50 +0100, Luis Miguel Crespo
=?iso-8859-1?Q?P=E9rez?= <lmc@sdsoftware.es> wrote:
>I find to slow adding strings to lists and choices, if I try:
> for (int i = 0; i < 1000; i++)
> list.add("Element " + i);
>this takes for ever, and even worse, the list starts scrolling up
>and down while adding elements.
>
>This also happens to Choice components.
>
>Is there a way to avoid it ?
>
>If so, please send an ansawer to:
> lmc@sdsoftware.es
>
Technical Details
Message-ID:
<36b128d8.41773338@news1.ibm.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36B091E6.C92DC76F@sdsoftware.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1116f3,eac07156a46eb363 X-Google-Attributes: gid1116f3,public X-Google-Thread: 113ae9,eac07156a46eb363 X-Google-Attributes: gid113ae9,public X-Google-Thread: 115d3b,eac07156a46eb363 X-Google-Attributes: gid115d3b,public X-Google-Thread: 10fd6d,eac07156a46eb363 X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10a146,eac07156a46eb363 X-Google-Attributes: gid10a146,public From: beinghappy@hotmail.com (mY) Subject: Re: TOO SLOW list.add(element) OR choice.add(element) Date: 1999/01/29 Message-ID: <36b128d8.41773338@news1.ibm.net> X-Deja-AN: 438187152 References: <36B091E6.C92DC76F@sdsoftware.es> X-Notice: should be reported to postmaster@ibm.net X-Complaints-To: postmaster@ibm.net X-Trace: 29 Jan 1999 03:21:41 GMT, 129.37.97.100 Organization: IBM.NET Newsgroups: comp.lang.java.gui,es.comp.lenguajes.java,comp.lang.java.programmer,comp.lang.java.security,comp.lang.java.help