Class DetachableTabbedPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class DetachableTabbedPane extends JTabbedPane
JTabbedPane implementation which allows tabbs to be 'torn off' as their own window. When the DetachableTabbedPane is set not visible using the 'setVisible' method, any detached tabs are also hidden. When set visible by the same means, previously detached, yet hidden tabs, are re-shown.
See Also:
  • Field Details

  • Constructor Details

    • DetachableTabbedPane

      Creates an empty DetachableTabbedPane with a default tab placement of JTabbedPane.TOP and detachability on.
    • DetachableTabbedPane

      public DetachableTabbedPane(String titleSuffix)
    • DetachableTabbedPane

      public DetachableTabbedPane(int tabPlacement, boolean detachable)
      Creates an empty DetachableTabbedPane with the specified tab placement of either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or JTabbedPane.RIGHT, and specified detachability.
      Parameters:
      tabPlacement - tab placement
      detachable - true if detachable
    • DetachableTabbedPane

      public DetachableTabbedPane(int tabPlacement, int tabLayoutPolicy, boolean detachable)
      Creates an empty DetachableTabbedPane with the specified tab placement and tab layout policy.
      Parameters:
      tabPlacement - tab placement
      tabLayoutPolicy - tab layout policy
      detachable - true if detachable
  • Method Details