Java JScrollPane Create makeScrollable(JComponent c)

Here you can find the source of makeScrollable(JComponent c)

Description

make Scrollable

License

Open Source License

Declaration

public static JScrollPane makeScrollable(JComponent c) 

Method Source Code

//package com.java2s;

import javax.swing.*;

public class Main {
    public static JScrollPane makeScrollable(JComponent c) {
        return new JScrollPane(c, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    }//from w  ww  .  j  a  v a 2  s .com
}

Related

  1. getScrollPane(Component component)
  2. getScrollPane(Component innerComponent)
  3. getScrollPane(final Component component)
  4. getScrollPaneAncestor(Component c)
  5. getScrollPaneViewComponent(JComponent component)
  6. makeScrollPane(Component c, int xdim, int ydim)
  7. makeScrollPane(Component comp)
  8. makeScrollPane(Component comp)
  9. wrapScroll(Component component)