Class MinimalScrollPane

    • Constructor Detail

      • MinimalScrollPane

        public MinimalScrollPane​(Component view,
                                 int vsbPolicy,
                                 int hsbPolicy)
        Creates a JScrollPane that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars. The scrollbar policies specify when the scrollbars are displayed, For example, if vsbPolicy is VERTICAL_SCROLLBAR_AS_NEEDED then the vertical scrollbar only appears if the view doesn't fit vertically. The available policy settings are listed at JScrollPane.setVerticalScrollBarPolicy(int) and JScrollPane.setHorizontalScrollBarPolicy(int).
        Parameters:
        view - the component to display in the scrollpanes viewport
        vsbPolicy - an integer that specifies the vertical scrollbar policy
        hsbPolicy - an integer that specifies the horizontal scrollbar policy
        See Also:
        JScrollPane.setViewportView(java.awt.Component)
      • MinimalScrollPane

        public MinimalScrollPane​(Component view)
        Creates a JScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view.
        Parameters:
        view - the component to display in the scrollpane's viewport
        See Also:
        JScrollPane.setViewportView(java.awt.Component)
      • MinimalScrollPane

        public MinimalScrollPane()
        Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear when needed.