🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Setting column titles in JTable, TableDialogEditDemo example

#734
From: John McGrath [TeamB]
Date: Fri, 07 Jan 2005 00:29
27 lines
2361 bytes
On 1/5/2005 at 7:05:29 PM, Richard M. Ulrich wrote:

> The problems we are running into are primarily associated with scrolled
> column headers getting hopelessly out of synch or with the body of the
> table (or downright mangled) when one scrolls to the right and then back.

I cannot reproduce this.  The table's AutoResizeMode property is set to
AUTO_RESIZE_NEXT_COLUMN, which means that the table will always be the
same width as the scroll pane's viewport.  As a result, the horizontal
scrollbar is never shown, so I cannot scroll to the right.  Can you give
me steps to reproduce the problem you are seeing?

> Also, resizing columns doesn't work too well.

It seems to work as expected.  When a column width is changed, it adjusts
the width of the next column so as to fit in the window.  This is what it
is supposed to do when the AutoResizeMode is AUTO_RESIZE_NEXT_COLUMN.
Have you tried other AutoResizeMode values?

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <xn0dwxxgt5qojdz00h@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,2ec5ccf013472ede
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Setting column titles in JTable, TableDialogEditDemo example
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>
User-Agent: XanaNews/1.17.1.2
Message-ID: <xn0dwxxgt5qojdz00h@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:000000EF
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 141.158.234.226
Date: 6 Jan 2005 16:29:25 -0800
X-Trace: newsgroups.borland.com 1105057765 141.158.234.226 (6 Jan 2005 16:29:25 -0800)
Lines: 27
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail