List of usage examples for javax.swing JScrollPane createHorizontalScrollBar
public JScrollBar createHorizontalScrollBar()
JScrollPane.ScrollBar
by default. From source file:org.openmicroscopy.shoola.agents.measurement.view.IntensityView.java
/** * Create the table panel which holds all the intensities for the selected * channel in the table./*from w w w . j av a 2s . c o m*/ * @return See Above. */ private JPanel tablePanel() { JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); JScrollPane scrollPane = new JScrollPane(channelSummaryTable); scrollPane.setVerticalScrollBar(scrollPane.createVerticalScrollBar()); scrollPane.setHorizontalScrollBar(scrollPane.createHorizontalScrollBar()); panel.add(scrollPane); return panel; }