🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTable : monitoring column width

#11916
From: S�bastien GRENIER
Date: Mon, 15 Mar 1999 00:00
35 lines
1312 bytes
Okay, I found it !

I have to catch propertyChange events for each
column in the table.

Now, when I try to resize columns of the other
table, nothing is done, I mean the visual size
of the column does not change.

Wich code sequence do I need to repaint
the JTable with it's correct aspect ?

something like

jtable.invalidate();
jtable.repaint();

this sequence does not work....

S�bastien GRENIER a �crit dans le message
<7cirjl$1fg5@forums.borland.com>...
>Hello everybody !
>
>I'd like to monitor the width of each column
>of a JTable, in order to synchronize visual
>aspect of an other one.
>
>I can catch "TableColumnModel" events to
>monitor columns order, but I don't know how
>to catch (may be impossible) events about
>width...
>
>Any idea ?
>
>
Technical Details
Message-ID: <7cj360$1f922@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7cirjl$1fg5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,7d10c5ef1d5c382a
X-Google-Attributes: gid111d45,public
From: "S�bastien GRENIER" <sgrenier@NOSPAM.atos-group.com>
Subject: Re: JTable : monitoring column width
Date: 1999/03/15
Message-ID: <7cj360$1f922@forums.borland.com>
X-Deja-AN: 455217786
References: <7cirjl$1fg5@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