🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Setting column titles in JTable, TableDialogEditDemo example

#665
From: Richard M. Ulrich
Date: Sat, 08 Jan 2005 22:39
17 lines
2102 bytes
"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message 
news:xn0dwzwku7gu3k900p@newsgroups.borland.com...
> What I do not understand is, what is the point of setting the preferred
> size of the JTable?  If this is designed to control the initial width of
> the columns, that is really not the way to do it.  Instead, you can set
> the preferred width of the individual columns, and the JTable will
> determine its own preferred width based on that.  And then, when the user
> resizes a column, the preferred width will change as well, so the viewport
> will not change the size back to its old preferred size.

John,

Setting the preferred width of each column is a much better solution!  It 
seems to work fine.

Thanks,
Richard
Technical Details
Message-ID: <41e06128@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41a8c0a1@newsgroups.borland.com> <41ab0304@newsgroups.borland.com> <xn0dqe27g17u5no001@newsgroups.borland.com> <41ae3fd6$1@newsgroups.borland.com> <xn0dqic152q8rpn001@newsgroups.borland.com> <41af6646$1@newsgroups.borland.com> <41b60985@newsgroups.borland.com> <41dc80b9@newsgroups.borland.com> <xn0dwxxgt5qojdz00h@newsgroups.borland.com> <41de9366$1@newsgroups.borland.com> <41def15b$1@newsgroups.borland.com> <xn0dwzwku7gu3k900p@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2ec5ccf013472ede
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Richard M. Ulrich" <RichardU@UlrichAssociates.com>
Newsgroups: borland.public.jbuilder.java.swing
References: <41a8c0a1@newsgroups.borland.com> <41ab0304@newsgroups.borland.com> <xn0dqe27g17u5no001@newsgroups.borland.com> <41ae3fd6$1@newsgroups.borland.com> <xn0dqic152q8rpn001@newsgroups.borland.com> <41af6646$1@newsgroups.borland.com> <41b60985@newsgroups.borland.com> <41dc80b9@newsgroups.borland.com> <xn0dwxxgt5qojdz00h@newsgroups.borland.com> <41de9366$1@newsgroups.borland.com> <41def15b$1@newsgroups.borland.com> <xn0dwzwku7gu3k900p@newsgroups.borland.com>
Subject: Re: Setting column titles in JTable, TableDialogEditDemo example
Date: Sat, 8 Jan 2005 17:39:53 -0500
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 12.101.9.226
Message-ID: <41e06128@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105223976 12.101.9.226 (8 Jan 2005 14:39:36 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail