JInternalFrame

Java Swing Tutorial Explaining the JInternalFrame class. A JInternalFrame is confined to a visible area of a container it is placed in. JInternalFrame a top level swing component that has a contentpane.

  • It can be iconified — in this case the icon remains in the main application container.
  • It can be maximized — Frame consumes the main application
  • It can be closed using standard popup window controls
  • It can be layered
  • Java JInternalFrame Hierarchy

    javax.swing
    Class JInternalFrame
    java.lang.Object
    |
    +–java.awt.Component
    |
    +–java.awt.Container
    |
    +–javax.swing.JComponent
    |
    +–javax.swing.JInternalFrame
    All Implemented Interfaces:
    Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

    JInternalFrame Constructor

    JInternalFrame()
    Creates a non-resizable, non-closable, non-maximizable, non-iconifiable JInternalFrame with no title.

    JInternalFrame(String title)
    Creates a non-resizable, non-closable, non-maximizable, non-iconifiable JInternalFrame with the specified title.

    JInternalFrame(String title, boolean resizable)
    Creates a non-closable, non-maximizable, non-iconifiable JInternalFrame with the specified title and resizability.

    JInternalFrame(String title, boolean resizable, boolean closable)
    Creates a non-maximizable, non-iconifiable JInternalFrame with the specified title, resizability, and closability.

    JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)
    Creates a non-iconifiable JInternalFrame with the specified title, resizability, closability, and maximizability.

    JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
    Creates a JInternalFrame with the specified title, resizability, closability, maximizability