Java javax.swing JInternalFrame fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JInternalFrame fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JInternalFrame.

The text is from its open source code.

Subclass

javax.swing.JInternalFrame has subclasses.
Click this link to see all its subclasses.

Field

booleanisClosed
The frame has been closed.
booleanisMaximum
The frame has been expanded to its maximum size.
booleanisIcon
The frame has been iconified.
booleanisSelected
The frame is currently selected.
StringIS_CLOSED_PROPERTY
Constrained property name indicating that the internal frame is closed.
StringIS_ICON_PROPERTY
Constrained property name indicating that the internal frame is iconified.

Constructor

JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
Creates a JInternalFrame with the specified title, resizability, closability, maximizability, and iconifiability.
JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)
Creates a non-iconifiable JInternalFrame with the specified title, resizability, closability, and maximizability.
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.

Method

Componentadd(String name, Component comp)
Adds the specified component to this container.
Componentadd(Component comp)
Appends the specified component to the end of this container.
voidaddComponentListener(ComponentListener l)
Adds the specified component listener to receive component events from this component.
voidaddFocusListener(FocusListener l)
Adds the specified focus listener to receive focus events from this component when this component gains input focus.
voidaddInternalFrameListener(InternalFrameListener l)
Adds the specified listener to receive internal frame events from this internal frame.
voidaddPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
voidaddVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener to the listener list.
voiddispose()
Makes this internal frame invisible, unselected, and closed.
RectanglegetBounds()
Gets the bounds of this component in the form of a Rectangle object.
ClassgetClass()
Returns the runtime class of this Object .
ObjectgetClientProperty(Object key)
Returns the value of the property with the specified key.
ContainergetContentPane()
Returns the content pane for this internal frame.
JDesktopPanegetDesktopPane()
Convenience method that searches the ancestor hierarchy for a JDesktop instance.
GraphicsConfigurationgetGraphicsConfiguration()
Gets the GraphicsConfiguration associated with this Component .
intgetHeight()
Returns the current height of this component.
InternalFrameListener[]getInternalFrameListeners()
Returns an array of all the InternalFrameListeners added to this JInternalFrame with addInternalFrameListener.
intgetLayer()
Convenience method for getting the layer attribute of this component.
PointgetLocation()
Gets the location of this component in the form of a point specifying the component's top-left corner.
PointgetLocationOnScreen()
Gets the location of this component in the form of a point specifying the component's top-left corner in the screen's coordinate space.
DimensiongetMinimumSize()
If the minimum size has been set to a non-null value just returns it.
StringgetName()
Gets the name of the component.
ContainergetParent()
Gets the parent of this component.
DimensiongetSize()
Returns the size of this component in the form of a Dimension object.
StringgetTitle()
Returns the title of the JInternalFrame.
InternalFrameUIgetUI()
Returns the look-and-feel object that renders this component.
intgetWidth()
Returns the current width of this component.
intgetX()
Returns the current x coordinate of the component's origin.
intgetY()
Returns the current y coordinate of the component's origin.
booleanisResizable()
Returns whether the JInternalFrame can be resized by some user action.
booleanisVisible()
Determines whether this component should be visible when its parent is visible.
voidmoveToBack()
Convenience method that moves this component to position -1 if its parent is a JLayeredPane.
voidmoveToFront()
Convenience method that moves this component to position 0 if its parent is a JLayeredPane.
voidpack()
Causes subcomponents of this JInternalFrame to be laid out at their preferred size.
voidputClientProperty(Object key, Object value)
Adds an arbitrary key/value "client property" to this component.
voidremoveInternalFrameListener(InternalFrameListener l)
Removes the specified internal frame listener so that it no longer receives internal frame events from this internal frame.
voidrequestFocus()
Requests that this Component gets the input focus.
voidreshape(int x, int y, int width, int height)
Moves and resizes this component.
voidrevalidate()
Supports deferred automatic layout.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetBounds(int x, int y, int width, int height)
Moves and resizes this component.
voidsetBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangle r .
voidsetClosable(boolean b)
Sets whether this JInternalFrame can be closed by some user action.
voidsetClosed(boolean b)
Closes this internal frame if the argument is true.
voidsetContentPane(Container c)
Sets this JInternalFrame's contentPane property.
voidsetDefaultCloseOperation(int operation)
Sets the operation that will happen by default when the user initiates a "close" on this internal frame.
voidsetFocusable(boolean focusable)
Sets the focusable state of this Component to the specified value.
voidsetForeground(Color fg)
Sets the foreground color of this component.
voidsetFrameIcon(Icon icon)
Sets an image to be displayed in the titlebar of this internal frame (usually in the top-left corner).
voidsetIcon(boolean b)
Iconifies or de-iconifies this internal frame, if the look and feel supports iconification.
voidsetIconifiable(boolean b)
Sets the iconable property, which must be true for the user to be able to make the JInternalFrame an icon.
voidsetJMenuBar(JMenuBar m)
Sets the menuBar property for this JInternalFrame.
voidsetLayer(Integer layer)
Convenience method for setting the layer attribute of this component.
voidsetLayer(int layer)
Convenience method for setting the layer attribute of this component.
voidsetLayout(LayoutManager manager)
Ensures that, by default, the layout of this component cannot be set.
voidsetLocation(int x, int y)
Moves this component to a new location.
voidsetLocation(Point p)
Moves this component to a new location.
voidsetMaximizable(boolean b)
Sets the maximizable property, which determines whether the JInternalFrame can be maximized by some user action.
voidsetMaximum(boolean b)
Maximizes and restores this internal frame.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetResizable(boolean b)
Sets whether the JInternalFrame can be resized by some user action.
voidsetSelected(boolean selected)
Selects or deselects the internal frame if it's showing.
voidsetSize(int width, int height)
Resizes this component so that it has width width and height height .
voidsetSize(Dimension d)
Resizes this component so that it has width d.width and height d.height .
voidsetTitle(String title)
Sets the JInternalFrame title.
voidsetUI(InternalFrameUI ui)
Sets the UI delegate for this JInternalFrame.
voidsetVisible(boolean aFlag)
Makes the component visible or invisible.
voidshow()
If the internal frame is not visible, brings the internal frame to the front, makes it visible, and attempts to select it.
voidtoBack()
Sends this internal frame to the back.
voidtoFront()
Brings this internal frame to the front.
voidupdateUI()
Notification from the UIManager that the look and feel has changed.
voidvalidate()
Validates this container and all of its subcomponents.