Article View: borland.public.jbuilder.java.language
Article #18917Re: JBuilder listControl can only hold 1,724 elements?
From: Rich Wilkman
Date: Mon, 06 Apr 1998 00:00
Date: Mon, 06 Apr 1998 00:00
40 lines
1904 bytes
1904 bytes
Alex:
The limit is in java.awt.ScrollPane and you hit it when your list
reaches 64K pixels in length. Limit applies only to WinTel versions
of Java and comes from the underlying windows peer. Limit goes away
when Java goes all lightweight (no peers) in JDK 1.2 (though you get
some relief with Swing).
-Rich
Alex Humphreys wrote:
>
> I'm trying to add Items to a JBuilder listControl, and I'm not able to
> add more than 1,724 elements. What's going on? Is there an upper limit
> in listControl but not in AWT's List? Why? Here's the code, which
> works fine with list, but after 1724 with ListControl, I get grey space
> in the control, but no elements. WEIRD.
>
> int num;
> num = 1;
> do {
> my_listControl.addItem(new Integer(num).toString());
> num += 1;
> } while (num < 5000);
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<352957E4.723BC1B0@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3528FDF0.AF222D9C@sema4.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,158a1e7a5c840201 X-Google-Attributes: gidf74b3,public From: Rich Wilkman <rwilkman@corp.borland.com> Subject: Re: JBuilder listControl can only hold 1,724 elements? Date: 1998/04/06 Message-ID: <352957E4.723BC1B0@corp.borland.com> X-Deja-AN: 341495454 Content-Transfer-Encoding: 7bit References: <3528FDF0.AF222D9C@sema4.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language