If you want to fill up the right corner gap between your JTable and JScrollPane ...
JButton jButton = new JButton(new ImageIcon());
jScrollPane.setCorner(ScrollPaneConstants.UPPER_RIGHT_CORNER, jButton);
If you want the horizontal scrollbar in the scrollpane which contains JTable..
jScrollPane.setHorizontalScrollBarPolicy(
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
No comments:
Post a Comment