🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.gui
Article #128

TOO SLOW list.add(element) OR choice.add(element)

#128
From: Luis Miguel Crespo Pérez
Date: Thu, 28 Jan 1999 00:00
12 lines
1501 bytes
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: <36B091E6.C92DC76F@sdsoftware.es>
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: 10fd6d,eac07156a46eb363,start
X-Google-Attributes: gid10fd6d,public
X-Google-Thread: 10a146,eac07156a46eb363,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 1116f3,eac07156a46eb363,start
X-Google-Attributes: gid1116f3,public
X-Google-Thread: 113ae9,eac07156a46eb363,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 115d3b,eac07156a46eb363,start
X-Google-Attributes: gid115d3b,public
From: Luis Miguel Crespo Pérez <lmc@sdsoftware.es>
Subject: TOO SLOW list.add(element) OR choice.add(element)
Date: 1999/01/28
Message-ID: <36B091E6.C92DC76F@sdsoftware.es>
X-Deja-AN: 437978988
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@lander.es
X-Trace: bufalo.lander.es 917541420 19821 195.76.47.68 (28 Jan 1999 16:37:00 GMT)
Organization: Lander Internet
Mime-Version: 1.0
NNTP-Posting-Date: 28 Jan 1999 16:37:00 GMT
Newsgroups: comp.lang.java.gui,es.comp.lenguajes.java,comp.lang.java.programmer,comp.lang.java.security,comp.lang.java.help