🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12100

Re: Problems with JTable

#12100
From: S�bastien GRENIER
Date: Tue, 23 Feb 1999 00:00
21 lines
1356 bytes
Just have to do a new Object[x][y] with the correct
values for X and Y, depending of the real size of the matrix.
Then, you'll have to restore values that where in your previous
array of objects.

Managing your model this way is not optimal. May try to use
collection instead of arrays, as your model can change...

J. Leroy a �crit dans le message <79ubvg$gdo7@forums.borland.com>...
>>The message you get shows that the dimension of the array that stock your
>>data is not well sized,
>>you try to add a column in your JTable, without resize the array of your
>>TableModel : (Object[][] or String[] )
>>When you add your column dynamically, try to resize the arrays of your
>>TableModel !
>>
>My array is a Object[][]. How can I resize it?
>Thanks,
>JLeroy.
>
>
Technical Details
Message-ID: <7audhe$2no7@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <79sj58$dhp3@forums.borland.com> <79u96o$gdm14@forums.borland.com> <79ubvg$gdo7@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,4d03de979042dc1f
X-Google-Attributes: gid111d45,public
From: "S�bastien GRENIER" <sgrenier@NOSPAM.atos-group.com>
Subject: Re: Problems with JTable
Date: 1999/02/23
Message-ID: <7audhe$2no7@forums.borland.com>
X-Deja-AN: 447497678
References: <79sj58$dhp3@forums.borland.com> <79u96o$gdm14@forums.borland.com> <79ubvg$gdo7@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing