Java JScrollPane newJScrollPane(String title, Component c)

Here you can find the source of newJScrollPane(String title, Component c)

Description

new J Scroll Pane

License

Apache License

Declaration

public static JScrollPane newJScrollPane(String title, Component c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.awt.Component;

import javax.swing.BorderFactory;

import javax.swing.JScrollPane;

public class Main {
    public static JScrollPane newJScrollPane(String title, Component c) {
        JScrollPane sp = new JScrollPane(c);
        sp.setBorder(BorderFactory.createTitledBorder(title));
        return sp;
    }//w  w  w  .  j a va  2 s .c  o  m
}

Related

  1. isScrolledToBottom(final JScrollPane scrollPane)
  2. makeComponentDragScrollable(final JComponent component)
  3. makeListInScrollPane(Collection items, Function namer)
  4. makeVScroller(Component c)
  5. moveEnd(JScrollPane pane)
  6. resetScrollPane(final JScrollPane scrollPane)
  7. scrollToBottom(final JScrollPane scrollPane)
  8. scrolltoHomePosition(JScrollPane jScrollPane1)
  9. scrollToTop(final JScrollPane scroller, int delay)