create Scroll Pane - Java Swing

Java examples for Swing:JScrollPane

Description

create Scroll Pane

Demo Code


//package com.java2s;
import java.awt.Component;

import javax.swing.JScrollPane;

public class Main {
    public static JScrollPane createScrollPane(Component component) {
        return new JScrollPane(component);
    }/*from ww  w  . java 2 s  .co m*/
}

Related Tutorials