Example usage for javax.swing JScrollPane createVerticalScrollBar

List of usage examples for javax.swing JScrollPane createVerticalScrollBar

Introduction

In this page you can find the example usage for javax.swing JScrollPane createVerticalScrollBar.

Prototype

public JScrollBar createVerticalScrollBar() 

Source Link

Document

Returns a JScrollPane.ScrollBar by default.

Usage

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.  ja  v a  2 s.  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;
}