I am having a bit of a problem using JScrollPane. following is my code
mainTable = new JTable(dataValues, columnNames );
scrollPane = new JScrollPane(mainTable);
The problem I have is that all even though I get the Horizontal Scroll Bar, but my columns are not autosized. Meing it tries to fit the columns in teh table and thus squeezes all of them. The Left and Right arrows on the Horizontal bar are there, but they dont do a thing. If I resize my columns it doesnt allow me to scroll the horizontal bar.