Class ReplaceContentExtensions

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void replaceContent​(javax.swing.JComponent container, javax.swing.JComponent content, boolean scrollable)
      Replace the content of the given container.
      static void replaceContentInMultiSplitPane​(javax.swing.JComponent container, javax.swing.JComponent content, boolean scrollable)
      Replace the content of the given container.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplaceContentExtensions

        public ReplaceContentExtensions()
    • Method Detail

      • replaceContent

        public static void replaceContent​(javax.swing.JComponent container,
                                          javax.swing.JComponent content,
                                          boolean scrollable)
        Replace the content of the given container.
        Parameters:
        container - the container
        content - the content
        scrollable - the flag if true the new content will be embedded in a JScrollPane
      • replaceContentInMultiSplitPane

        public static void replaceContentInMultiSplitPane​(javax.swing.JComponent container,
                                                          javax.swing.JComponent content,
                                                          boolean scrollable)
        Replace the content of the given container.
        Parameters:
        container - the container
        content - the content
        scrollable - the flag if true the new content will be embedded in a JScrollPane