Java JScrollPane Create wrapScrollPane(Component component)

Here you can find the source of wrapScrollPane(Component component)

Description

wrap Scroll Pane

License

Open Source License

Declaration

public static JScrollPane wrapScrollPane(Component component) 

Method Source Code

//package com.java2s;
/*/*from w ww  .  j  a va2s . c  o m*/
 * SK's Minecraft Launcher
 * Copyright (C) 2010-2014 Albert Pham <http://www.sk89q.com> and contributors
 * Please see LICENSE.txt for license information.
 */

import javax.swing.*;

import java.awt.*;

public class Main {
    public static JScrollPane wrapScrollPane(Component component) {
        JScrollPane scrollPane = new JScrollPane(component);
        scrollPane
                .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        return scrollPane;
    }
}

Related

  1. makeScrollable(JComponent c)
  2. makeScrollPane(Component c, int xdim, int ydim)
  3. makeScrollPane(Component comp)
  4. makeScrollPane(Component comp)
  5. wrapScroll(Component component)