Dear All,
JTable horizontal scrollbar problem
I have one JFrame with gridbaglayout.
And i have jtable with in scrollpane. this scrollpane added in the
JPanel.
i added the jpanel in the JFrame. i have 100 columns and 100 rows in
the jtable.
When i see the output i am able to see the vertical scrollbar. But i
am not able to see the horizontal scrollbar. When ever i resize the
JFrame, JTable also getting resized, but it is not displaying the
horizontal scroll bar.
If some one know about this problem. please help me to resolve.
-sathish
Sathish - 22 Jan 2005 08:21 GMT
if you any one knows this problem please reply
Frank Liu - 23 Jan 2005 23:59 GMT
The default behavior of JTable is to squeeze all the columns into available
space. So you will not see the horizontal scroll bar unless you modify the
default.
Frank
> if you any one knows this problem please reply
Roland - 22 Jan 2005 09:22 GMT
> Dear All,
>
[quoted text clipped - 13 lines]
>
> -sathish
And all those 100 columns get squeezed in the scrollpane?
Check out
<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html#setAutoResizeMode(int)>

Signature
Regards,
Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \