get visible column size

Hi All,

i have a table with a few column's.

i have to know the visible size (actually the width) of each one of them.

how can i get this value?

TIA

[179 byte] By [Gabia] at [2007-11-27 11:19:16]
# 1

use this

table.getColumnModel().getColumn(colIndex).getWidth()

hanoch_ya at 2007-7-29 14:35:46 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi Hanoch,

this soloution won't help ill explain why.

my table is in some frame .

when i resize (stretch or shrink) the frame can overlap the columns.

so a part of a column can be unvisible.

so when i resize back i want to know what part of columns is visible (because i have to synchronize to other components).

with your suggestion i will always get the same value (i checked it before).

Thanks

Gabia at 2007-7-29 14:35:46 > top of Java-index,Desktop,Core GUI APIs...