Example usage for javax.swing JScrollPane createHorizontalScrollBar

List of usage examples for javax.swing JScrollPane createHorizontalScrollBar

Introduction

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

Prototype

public JScrollBar createHorizontalScrollBar() 

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 .  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;
}