Java Utililty Methods JScrollPane Create

List of utility methods to do JScrollPane Create

Description

The list of methods to do JScrollPane Create are organized into topic(s).

Method

JScrollPanemakeScrollPane(Component comp)
make Scroll Pane
JScrollPane pane = new JScrollPane(comp, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
        ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
pane.setPreferredSize(pane.getMinimumSize());
pane.setViewportBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
return pane;
JScrollPanemakeScrollPane(Component comp)
Create a scroll panel that sets its preferred size to its minimum size.
JScrollPane pane = new JScrollPane(comp);
pane.setPreferredSize(pane.getMinimumSize());
return pane;
JScrollPanewrapScroll(Component component)
Wrap the given component with JScrollPane .
return new JScrollPane(component);
JScrollPanewrapScrollPane(Component component)
wrap Scroll Pane
JScrollPane scrollPane = new JScrollPane(component);
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
return scrollPane;