Bill Tschumy schrieb:
Why is the table allocating so much space to the column?
How about trying to set the second column to be resizable?
column = getColumnModel().getColumn(0);
column.setPreferredWidth(20);
column.setMinWidth(20);
No, that doesn't help but thanks for the suggestion. I have found a
partial solution, but I don't know why my original method fails.
When I would change the host status I need to update the icon in
column 0. To do so I used the following code.
public void statusChanged(RemoteHost host)
.
Regards
Urs
-Original Message-
From: Bill Tschumy [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 25. April 2001 15:32
To: Christian Pesch
Cc: [EMAIL PROTECTED]
Subject: Re: Help with JTable column width
No, that doesn't help but thanks for the suggestion. I have found a
partial solution
I've been having a devil of a time trying to get the columns of my
JTable to size correctly. I have a very simple table inside of a
JScrollPane. The rows consist of a 16x16 icon in column 0 and a
String in column 1 (basically a status icon for a hostname).
I have specified a preferred