Class DetachableInternalFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
AdditionalResultsFrame, InfoFrame, ViewAttributesPlugIn.ViewAttributesFrame

public class DetachableInternalFrame extends JInternalFrame
A detacheable JInternalFrame. DetachableInternalFrame extends JInternalFrame and adds a popup menu to the JInternalFrame's tiltle pane (the northpane). With this popupmenu you can detach this JInternalFrame to a separate JFrame. If the JFrame gets closing, the JInternalFrame comes back into the application.
It is possible to detach and attach without the popup menu. There are public detach() and attach() methods. The detached state is queryable with the isDetached() method.
Author:
Matthias Scholz <ms@jammerhund.de>
See Also:
  • Constructor Details

  • Method Details

    • detach

      public boolean detach()
      Detach a this frame. The detached JFrame gets the same size and position as the JInternalFrame.
      Returns:
      true if could be detached and false if the frame was not attached.
    • attach

      public boolean attach()
      Attaches this previously detached frame.
      Returns:
      true if could be attached and false if the frame was not detached.
    • isDetached

      public boolean isDetached()
      Returns:
      the detached status
    • setDetachMenuItemText

      public void setDetachMenuItemText(String text)
      Sets the text of the detach popup menu. Default is "detach window".
      Parameters:
      text - text of the detach popup menu
    • getFrame

      public JFrame getFrame()