Have on a JScrollPane/JTable an horizontal JScrollbarTag(s): Swing


JScrollPane myScrollPane;
JTable myTable;

myTable = new Jtable(x,y);
myTable.setAutoResizeMode (JTable.AUTO_RESIZE_OFF);
myScrollPane = new JScrollPane(myTable);
myScrollPane.setHorizontalScrollBar(new JScrollBar());
myTable.setAutoResizeMode (JTable.AUTO_RESIZE_OFF);


blog comments powered by Disqus