Have a look at method 'setResizeMode' of JTable.
Marco
-----Original Message-----
From: Dipak Jha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 1:25 PM
To: [EMAIL PROTECTED]
Subject: H-ScrollBar Problem with JTable
My GUI uses a JScrollPane to accomodate a JTable. I have done it as follows:
JScrollPane jsp = new JScrollPane(jt);
where jt is the JTable I want to display.
While I'm getting the Vertical ScrollBar, the Horizontal one does not
appear.
This happens even when the column headers are long enough. The columns
shrink
and get resized to get accomodated within the viewport.
I would like the columns to resize so as to show the headers fully and to
have a
Horizontal scrollbar that makes it possible to have a look at other columns
that
get positioned beyond the viewport.
Can someone help me out with this ??
Thanks in advance
Dipak
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing