🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable column resizing...

#12547
From: Matt Krevs
Date: Tue, 22 Dec 1998 00:00
21 lines
1413 bytes
Does the column header paint properly once you have minimised/restored? I
suspect so.

If thats the case then call validate() for the JScrollPane that the table
and table header have been added to.

Nadia Akrour wrote in message <367E8EA9.D674A7DA@spring.fr>...
>Hi all,
>I have implemented a mouse listener on the table and on the double-click
>the clicked column resizes itself. It calculates the new size of the
>column as being the max value of the column header size and the cell
>size. (according to the font size). The problem is that the column is
>resized but the header is not. I have to scroll the table to see the
>header resize itself. Has it something to do with the viewport, as the
>header is not a part of the scrollable area ??
>I have tried validate() on the table header but it had no effect.
>Please if you have any idea on how to do this tell me.
>Thanx in advance.
>
>Nadia.
>
Technical Details
Message-ID: <75mgcd$95j3@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <367E8EA9.D674A7DA@spring.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,bd5e0357dd36e570
X-Google-Attributes: gid111d45,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: JTable column resizing...
Date: 1998/12/22
Message-ID: <75mgcd$95j3@forums.borland.com>
X-Deja-AN: 424633178
References: <367E8EA9.D674A7DA@spring.fr>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing