JInternalFrame (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
protected void
[addImpl](../../javax/swing/JInternalFrame.html#addImpl-java.awt.Component-java.lang.Object-int-)([Component](../../java/awt/Component.html "class in java.awt") comp,[Object](../../java/lang/Object.html "class in java.lang") constraints, int index)
Adds the specified child Component
.
void
[addInternalFrameListener](../../javax/swing/JInternalFrame.html#addInternalFrameListener-javax.swing.event.InternalFrameListener-)([InternalFrameListener](../../javax/swing/event/InternalFrameListener.html "interface in javax.swing.event") l)
Adds the specified listener to receive internal frame events from this internal frame.
protected [JRootPane](../../javax/swing/JRootPane.html "class in javax.swing")
[createRootPane](../../javax/swing/JInternalFrame.html#createRootPane--)()
Called by the constructor to set up the JRootPane
.
void
[dispose](../../javax/swing/JInternalFrame.html#dispose--)()
Makes this internal frame invisible, unselected, and closed.
void
[doDefaultCloseAction](../../javax/swing/JInternalFrame.html#doDefaultCloseAction--)()
Fires anINTERNAL_FRAME_CLOSING
event and then performs the action specified by the internal frame's default close operation.
protected void
[fireInternalFrameEvent](../../javax/swing/JInternalFrame.html#fireInternalFrameEvent-int-)(int id)
Fires an internal frame event.
[AccessibleContext](../../javax/accessibility/AccessibleContext.html "class in javax.accessibility")
[getAccessibleContext](../../javax/swing/JInternalFrame.html#getAccessibleContext--)()
Gets the AccessibleContext
associated with thisJInternalFrame
.
[Container](../../java/awt/Container.html "class in java.awt")
[getContentPane](../../javax/swing/JInternalFrame.html#getContentPane--)()
Returns the content pane for this internal frame.
int
[getDefaultCloseOperation](../../javax/swing/JInternalFrame.html#getDefaultCloseOperation--)()
Returns the default operation that occurs when the user initiates a "close" on this internal frame.
[JInternalFrame.JDesktopIcon](../../javax/swing/JInternalFrame.JDesktopIcon.html "class in javax.swing")
[getDesktopIcon](../../javax/swing/JInternalFrame.html#getDesktopIcon--)()
Returns the JDesktopIcon
used when thisJInternalFrame
is iconified.
[JDesktopPane](../../javax/swing/JDesktopPane.html "class in javax.swing")
[getDesktopPane](../../javax/swing/JInternalFrame.html#getDesktopPane--)()
Convenience method that searches the ancestor hierarchy for aJDesktop
instance.
[Container](../../java/awt/Container.html "class in java.awt")
[getFocusCycleRootAncestor](../../javax/swing/JInternalFrame.html#getFocusCycleRootAncestor--)()
Always returns null
because JInternalFrame
s must always be roots of a focus traversal cycle.
[Component](../../java/awt/Component.html "class in java.awt")
[getFocusOwner](../../javax/swing/JInternalFrame.html#getFocusOwner--)()
If this JInternalFrame
is active, returns the child that has focus.
[Icon](../../javax/swing/Icon.html "interface in javax.swing")
[getFrameIcon](../../javax/swing/JInternalFrame.html#getFrameIcon--)()
Returns the image displayed in the title bar of this internal frame (usually in the top-left corner).
[Component](../../java/awt/Component.html "class in java.awt")
[getGlassPane](../../javax/swing/JInternalFrame.html#getGlassPane--)()
Returns the glass pane for this internal frame.
[InternalFrameListener](../../javax/swing/event/InternalFrameListener.html "interface in javax.swing.event")[]
[getInternalFrameListeners](../../javax/swing/JInternalFrame.html#getInternalFrameListeners--)()
Returns an array of all the InternalFrameListener
s added to this JInternalFrame
withaddInternalFrameListener
.
[JMenuBar](../../javax/swing/JMenuBar.html "class in javax.swing")
[getJMenuBar](../../javax/swing/JInternalFrame.html#getJMenuBar--)()
Returns the current JMenuBar
for thisJInternalFrame
, or null
if no menu bar has been set.
[Cursor](../../java/awt/Cursor.html "class in java.awt")
[getLastCursor](../../javax/swing/JInternalFrame.html#getLastCursor--)()
Returns the last Cursor
that was set by thesetCursor
method that is not a resizableCursor
.
int
[getLayer](../../javax/swing/JInternalFrame.html#getLayer--)()
Convenience method for getting the layer attribute of this component.
[JLayeredPane](../../javax/swing/JLayeredPane.html "class in javax.swing")
[getLayeredPane](../../javax/swing/JInternalFrame.html#getLayeredPane--)()
Returns the layered pane for this internal frame.
[JMenuBar](../../javax/swing/JMenuBar.html "class in javax.swing")
[getMenuBar](../../javax/swing/JInternalFrame.html#getMenuBar--)()
[Component](../../java/awt/Component.html "class in java.awt")
[getMostRecentFocusOwner](../../javax/swing/JInternalFrame.html#getMostRecentFocusOwner--)()
Returns the child component of this JInternalFrame
that will receive the focus when this JInternalFrame
is selected.
[Rectangle](../../java/awt/Rectangle.html "class in java.awt")
[getNormalBounds](../../javax/swing/JInternalFrame.html#getNormalBounds--)()
If the JInternalFrame
is not in maximized state, returnsgetBounds()
; otherwise, returns the bounds that theJInternalFrame
would be restored to.
[JRootPane](../../javax/swing/JRootPane.html "class in javax.swing")
[getRootPane](../../javax/swing/JInternalFrame.html#getRootPane--)()
Returns the rootPane
object for this internal frame.
[String](../../java/lang/String.html "class in java.lang")
[getTitle](../../javax/swing/JInternalFrame.html#getTitle--)()
Returns the title of the JInternalFrame
.
[InternalFrameUI](../../javax/swing/plaf/InternalFrameUI.html "class in javax.swing.plaf")
[getUI](../../javax/swing/JInternalFrame.html#getUI--)()
Returns the look-and-feel object that renders this component.
[String](../../java/lang/String.html "class in java.lang")
[getUIClassID](../../javax/swing/JInternalFrame.html#getUIClassID--)()
Returns the name of the look-and-feel class that renders this component.
[String](../../java/lang/String.html "class in java.lang")
[getWarningString](../../javax/swing/JInternalFrame.html#getWarningString--)()
Gets the warning string that is displayed with this internal frame.
void
[hide](../../javax/swing/JInternalFrame.html#hide--)()
boolean
[isClosable](../../javax/swing/JInternalFrame.html#isClosable--)()
Returns whether this JInternalFrame
can be closed by some user action.
boolean
[isClosed](../../javax/swing/JInternalFrame.html#isClosed--)()
Returns whether this JInternalFrame
is currently closed.
boolean
[isFocusCycleRoot](../../javax/swing/JInternalFrame.html#isFocusCycleRoot--)()
Always returns true
because all JInternalFrame
s must be roots of a focus traversal cycle.
boolean
[isIcon](../../javax/swing/JInternalFrame.html#isIcon--)()
Returns whether the JInternalFrame
is currently iconified.
boolean
[isIconifiable](../../javax/swing/JInternalFrame.html#isIconifiable--)()
Gets the iconable
property, which by default is false
.
boolean
[isMaximizable](../../javax/swing/JInternalFrame.html#isMaximizable--)()
Gets the value of the maximizable
property.
boolean
[isMaximum](../../javax/swing/JInternalFrame.html#isMaximum--)()
Returns whether the JInternalFrame
is currently maximized.
boolean
[isResizable](../../javax/swing/JInternalFrame.html#isResizable--)()
Returns whether the JInternalFrame
can be resized by some user action.
protected boolean
[isRootPaneCheckingEnabled](../../javax/swing/JInternalFrame.html#isRootPaneCheckingEnabled--)()
Returns whether calls to add
andsetLayout
are forwarded to the contentPane
.
boolean
[isSelected](../../javax/swing/JInternalFrame.html#isSelected--)()
Returns whether the JInternalFrame
is the currently "selected" or active frame.
void
[moveToBack](../../javax/swing/JInternalFrame.html#moveToBack--)()
Convenience method that moves this component to position -1 if its parent is a JLayeredPane
.
void
[moveToFront](../../javax/swing/JInternalFrame.html#moveToFront--)()
Convenience method that moves this component to position 0 if its parent is a JLayeredPane
.
void
[pack](../../javax/swing/JInternalFrame.html#pack--)()
Causes subcomponents of this JInternalFrame
to be laid out at their preferred size.
protected void
[paintComponent](../../javax/swing/JInternalFrame.html#paintComponent-java.awt.Graphics-)([Graphics](../../java/awt/Graphics.html "class in java.awt") g)
Overridden to allow optimized painting when the internal frame is being dragged.
protected [String](../../java/lang/String.html "class in java.lang")
[paramString](../../javax/swing/JInternalFrame.html#paramString--)()
Returns a string representation of this JInternalFrame
.
void
[remove](../../javax/swing/JInternalFrame.html#remove-java.awt.Component-)([Component](../../java/awt/Component.html "class in java.awt") comp)
Removes the specified component from the container.
void
[removeInternalFrameListener](../../javax/swing/JInternalFrame.html#removeInternalFrameListener-javax.swing.event.InternalFrameListener-)([InternalFrameListener](../../javax/swing/event/InternalFrameListener.html "interface in javax.swing.event") l)
Removes the specified internal frame listener so that it no longer receives internal frame events from this internal frame.
void
[reshape](../../javax/swing/JInternalFrame.html#reshape-int-int-int-int-)(int x, int y, int width, int height)
Moves and resizes this component.
void
[restoreSubcomponentFocus](../../javax/swing/JInternalFrame.html#restoreSubcomponentFocus--)()
Requests the internal frame to restore focus to the last subcomponent that had focus.
void
[setClosable](../../javax/swing/JInternalFrame.html#setClosable-boolean-)(boolean b)
Sets whether this JInternalFrame
can be closed by some user action.
void
[setClosed](../../javax/swing/JInternalFrame.html#setClosed-boolean-)(boolean b)
Closes this internal frame if the argument is true
.
void
[setContentPane](../../javax/swing/JInternalFrame.html#setContentPane-java.awt.Container-)([Container](../../java/awt/Container.html "class in java.awt") c)
Sets this JInternalFrame
's contentPane
property.
void
[setCursor](../../javax/swing/JInternalFrame.html#setCursor-java.awt.Cursor-)([Cursor](../../java/awt/Cursor.html "class in java.awt") cursor)
Sets the cursor image to the specified cursor.
void
[setDefaultCloseOperation](../../javax/swing/JInternalFrame.html#setDefaultCloseOperation-int-)(int operation)
Sets the operation that will happen by default when the user initiates a "close" on this internal frame.
void
[setDesktopIcon](../../javax/swing/JInternalFrame.html#setDesktopIcon-javax.swing.JInternalFrame.JDesktopIcon-)([JInternalFrame.JDesktopIcon](../../javax/swing/JInternalFrame.JDesktopIcon.html "class in javax.swing") d)
Sets the JDesktopIcon
associated with thisJInternalFrame
.
void
[setFocusCycleRoot](../../javax/swing/JInternalFrame.html#setFocusCycleRoot-boolean-)(boolean focusCycleRoot)
Does nothing because JInternalFrame
s must always be roots of a focus traversal cycle.
void
[setFrameIcon](../../javax/swing/JInternalFrame.html#setFrameIcon-javax.swing.Icon-)([Icon](../../javax/swing/Icon.html "interface in javax.swing") icon)
Sets an image to be displayed in the titlebar of this internal frame (usually in the top-left corner).
void
[setGlassPane](../../javax/swing/JInternalFrame.html#setGlassPane-java.awt.Component-)([Component](../../java/awt/Component.html "class in java.awt") glass)
Sets this JInternalFrame
'sglassPane
property.
void
[setIcon](../../javax/swing/JInternalFrame.html#setIcon-boolean-)(boolean b)
Iconifies or de-iconifies this internal frame, if the look and feel supports iconification.
void
[setIconifiable](../../javax/swing/JInternalFrame.html#setIconifiable-boolean-)(boolean b)
Sets the iconable
property, which must be true
for the user to be able to make the JInternalFrame
an icon.
void
[setJMenuBar](../../javax/swing/JInternalFrame.html#setJMenuBar-javax.swing.JMenuBar-)([JMenuBar](../../javax/swing/JMenuBar.html "class in javax.swing") m)
Sets the menuBar
property for this JInternalFrame
.
void
[setLayer](../../javax/swing/JInternalFrame.html#setLayer-int-)(int layer)
Convenience method for setting the layer attribute of this component.
void
[setLayer](../../javax/swing/JInternalFrame.html#setLayer-java.lang.Integer-)([Integer](../../java/lang/Integer.html "class in java.lang") layer)
Convenience method for setting the layer attribute of this component.
void
[setLayeredPane](../../javax/swing/JInternalFrame.html#setLayeredPane-javax.swing.JLayeredPane-)([JLayeredPane](../../javax/swing/JLayeredPane.html "class in javax.swing") layered)
Sets this JInternalFrame
'slayeredPane
property.
void
[setLayout](../../javax/swing/JInternalFrame.html#setLayout-java.awt.LayoutManager-)([LayoutManager](../../java/awt/LayoutManager.html "interface in java.awt") manager)
Ensures that, by default, the layout of this component cannot be set.
void
[setMaximizable](../../javax/swing/JInternalFrame.html#setMaximizable-boolean-)(boolean b)
Sets the maximizable
property, which determines whether the JInternalFrame
can be maximized by some user action.
void
[setMaximum](../../javax/swing/JInternalFrame.html#setMaximum-boolean-)(boolean b)
Maximizes and restores this internal frame.
void
[setMenuBar](../../javax/swing/JInternalFrame.html#setMenuBar-javax.swing.JMenuBar-)([JMenuBar](../../javax/swing/JMenuBar.html "class in javax.swing") m)
void
[setNormalBounds](../../javax/swing/JInternalFrame.html#setNormalBounds-java.awt.Rectangle-)([Rectangle](../../java/awt/Rectangle.html "class in java.awt") r)
Sets the normal bounds for this internal frame, the bounds that this internal frame would be restored to from its maximized state.
void
[setResizable](../../javax/swing/JInternalFrame.html#setResizable-boolean-)(boolean b)
Sets whether the JInternalFrame
can be resized by some user action.
protected void
[setRootPane](../../javax/swing/JInternalFrame.html#setRootPane-javax.swing.JRootPane-)([JRootPane](../../javax/swing/JRootPane.html "class in javax.swing") root)
Sets the rootPane
property for this JInternalFrame
.
protected void
[setRootPaneCheckingEnabled](../../javax/swing/JInternalFrame.html#setRootPaneCheckingEnabled-boolean-)(boolean enabled)
Sets whether calls to add
andsetLayout
are forwarded to the contentPane
.
void
[setSelected](../../javax/swing/JInternalFrame.html#setSelected-boolean-)(boolean selected)
Selects or deselects the internal frame if it's showing.
void
[setTitle](../../javax/swing/JInternalFrame.html#setTitle-java.lang.String-)([String](../../java/lang/String.html "class in java.lang") title)
Sets the JInternalFrame
title.
void
[setUI](../../javax/swing/JInternalFrame.html#setUI-javax.swing.plaf.InternalFrameUI-)([InternalFrameUI](../../javax/swing/plaf/InternalFrameUI.html "class in javax.swing.plaf") ui)
Sets the UI delegate for this JInternalFrame
.
void
[show](../../javax/swing/JInternalFrame.html#show--)()
If the internal frame is not visible, brings the internal frame to the front, makes it visible, and attempts to select it.
void
[toBack](../../javax/swing/JInternalFrame.html#toBack--)()
Sends this internal frame to the back.
void
[toFront](../../javax/swing/JInternalFrame.html#toFront--)()
Brings this internal frame to the front.
void
[updateUI](../../javax/swing/JInternalFrame.html#updateUI--)()
Notification from the UIManager
that the look and feel has changed.