While dragging the column header with the mouse,
I try to move column A to the position between columns Y and Z.
When the mouse pointer comes to the right edge of the scrollpane,
I would expect it to start a horizontal autoscroll, but this does not happen.
Is there any way to make it work?
import java.awt.*;
import javax.swing.*;
public class TableDemo extends JFrame{
private JTable table;
public TableDemo(){
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(400, 300);
table = new JTable(4, 26);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
getContentPane().add(new JScrollPane(table), BorderLayout.CENTER);
}
public static void main(final String[] args) {
new TableDemo().setVisible(true);
}
}