Example usage for javax.swing JScrollPane setVerticalScrollBar

List of usage examples for javax.swing JScrollPane setVerticalScrollBar

Introduction

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

Prototype

@BeanProperty(expert = true, description = "The vertical scrollbar.")
public void setVerticalScrollBar(JScrollBar verticalScrollBar) 

Source Link

Document

Adds the scrollbar that controls the viewports vertical view position to the scrollpane.

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