Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JTable columns not scrolling

843854Mar 25 2002 — edited Mar 27 2002
my jtable shows records successfully and can scroll rows (vertical) but not the column. The columns were forced to fit in the available size of the jtable. Please advice. Here is my code:
...
JScrollPane resultTableScroller = new JScrollPane();
JScrollPane SQLScroller = new JScrollPane();
...
resultTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
resultTableScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
resultTableScroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);

resultTableScroller.setViewportView(resultTable);
resultPanel.add(resultTableScroller);

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2002
Added on Mar 25 2002
4 comments
197 views