scrollPane = new JScrollPane(table); panel1.add( scrollPane,BorderLayout.CENTER );
Is there a way I can make the scrollPane bigger (wider) ?
JScrollPane scrollPane = new JScrollPane(table,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
JScrollBar bar = scrollPane.getVerticalScrollBar();
bar.setPreferredSize(new Dimension(40, 0));
This works. I figured it out.