Article View: borland.public.jbuilder.java.swing
Article #12542JTable column resizing...
From: Nadia Akrour
Date: Mon, 21 Dec 1998 00:00
Date: Mon, 21 Dec 1998 00:00
13 lines
1131 bytes
1131 bytes
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:
<367E8EA9.D674A7DA@spring.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bd5e0357dd36e570,start X-Google-Attributes: gid111d45,public From: Nadia Akrour <akrour@spring.fr> Subject: JTable column resizing... Date: 1998/12/21 Message-ID: <367E8EA9.D674A7DA@spring.fr> X-Deja-AN: 424568949 Content-Transfer-Encoding: 7bit X-Accept-Language: fr-FR,en Content-Type: text/plain; charset=us-ascii Organization: SPRING TECHNOLOGIES Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing