Example usage for Java javax.swing JInternalFrame fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isClosed The frame has been closed. |
boolean | isMaximum The frame has been expanded to its maximum size. |
boolean | isIcon The frame has been iconified. |
boolean | isSelected The frame is currently selected. |
String | IS_CLOSED_PROPERTY Constrained property name indicating that the internal frame is closed. |
String | IS_ICON_PROPERTY Constrained property name indicating that the internal frame is iconified. |
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. |
Component | add(String name, Component comp) Adds the specified component to this container. |
Component | add(Component comp) Appends the specified component to the end of this container. |
void | addComponentListener(ComponentListener l) Adds the specified component listener to receive component events from this component. |
void | addFocusListener(FocusListener l) Adds the specified focus listener to receive focus events from this component when this component gains input focus. |
void | addInternalFrameListener(InternalFrameListener l) Adds the specified listener to receive internal frame events from this internal frame. |
void | addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list. |
void | addVetoableChangeListener(VetoableChangeListener listener) Adds a VetoableChangeListener to the listener list. |
void | dispose() Makes this internal frame invisible, unselected, and closed. |
Rectangle | getBounds() Gets the bounds of this component in the form of a Rectangle object. |
Class> | getClass() Returns the runtime class of this Object . |
Object | getClientProperty(Object key) Returns the value of the property with the specified key. |
Container | getContentPane() Returns the content pane for this internal frame. |
JDesktopPane | getDesktopPane() Convenience method that searches the ancestor hierarchy for a JDesktop instance. |
GraphicsConfiguration | getGraphicsConfiguration() Gets the GraphicsConfiguration associated with this Component . |
int | getHeight() Returns the current height of this component. |
InternalFrameListener[] | getInternalFrameListeners() Returns an array of all the InternalFrameListener s added to this JInternalFrame with addInternalFrameListener . |
int | getLayer() Convenience method for getting the layer attribute of this component. |
Point | getLocation() Gets the location of this component in the form of a point specifying the component's top-left corner. |
Point | getLocationOnScreen() 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. |
Dimension | getMinimumSize() If the minimum size has been set to a non- null value just returns it. |
String | getName() Gets the name of the component. |
Container | getParent() Gets the parent of this component. |
Dimension | getSize() Returns the size of this component in the form of a Dimension object. |
String | getTitle() Returns the title of the JInternalFrame . |
InternalFrameUI | getUI() Returns the look-and-feel object that renders this component. |
int | getWidth() Returns the current width of this component. |
int | getX() Returns the current x coordinate of the component's origin. |
int | getY() Returns the current y coordinate of the component's origin. |
boolean | isResizable() Returns whether the JInternalFrame can be resized by some user action. |
boolean | isVisible() Determines whether this component should be visible when its parent is visible. |
void | moveToBack() Convenience method that moves this component to position -1 if its parent is a JLayeredPane . |
void | moveToFront() Convenience method that moves this component to position 0 if its parent is a JLayeredPane . |
void | pack() Causes subcomponents of this JInternalFrame to be laid out at their preferred size. |
void | putClientProperty(Object key, Object value) Adds an arbitrary key/value "client property" to this component. |
void | removeInternalFrameListener(InternalFrameListener l) Removes the specified internal frame listener so that it no longer receives internal frame events from this internal frame. |
void | requestFocus() Requests that this Component gets the input focus. |
void | reshape(int x, int y, int width, int height) Moves and resizes this component. |
void | revalidate() Supports deferred automatic layout. |
void | setBackground(Color bg) Sets the background color of this component. |
void | setBorder(Border border) Sets the border of this component. |
void | setBounds(int x, int y, int width, int height) Moves and resizes this component. |
void | setBounds(Rectangle r) Moves and resizes this component to conform to the new bounding rectangle r . |
void | setClosable(boolean b) Sets whether this JInternalFrame can be closed by some user action. |
void | setClosed(boolean b) Closes this internal frame if the argument is true . |
void | setContentPane(Container c) Sets this JInternalFrame 's contentPane property. |
void | setDefaultCloseOperation(int operation) Sets the operation that will happen by default when the user initiates a "close" on this internal frame. |
void | setFocusable(boolean focusable) Sets the focusable state of this Component to the specified value. |
void | setForeground(Color fg) Sets the foreground color of this component. |
void | setFrameIcon(Icon icon) Sets an image to be displayed in the titlebar of this internal frame (usually in the top-left corner). |
void | setIcon(boolean b) Iconifies or de-iconifies this internal frame, if the look and feel supports iconification. |
void | setIconifiable(boolean b) Sets the iconable property, which must be true for the user to be able to make the JInternalFrame an icon. |
void | setJMenuBar(JMenuBar m) Sets the menuBar property for this JInternalFrame . |
void | setLayer(Integer layer) Convenience method for setting the layer attribute of this component. |
void | setLayer(int layer) Convenience method for setting the layer attribute of this component. |
void | setLayout(LayoutManager manager) Ensures that, by default, the layout of this component cannot be set. |
void | setLocation(int x, int y) Moves this component to a new location. |
void | setLocation(Point p) Moves this component to a new location. |
void | setMaximizable(boolean b) Sets the maximizable property, which determines whether the JInternalFrame can be maximized by some user action. |
void | setMaximum(boolean b) Maximizes and restores this internal frame. |
void | setName(String name) Sets the name of the component to the specified string. |
void | setOpaque(boolean isOpaque) If true the component paints every pixel within its bounds. |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setResizable(boolean b) Sets whether the JInternalFrame can be resized by some user action. |
void | setSelected(boolean selected) Selects or deselects the internal frame if it's showing. |
void | setSize(int width, int height) Resizes this component so that it has width width and height height . |
void | setSize(Dimension d) Resizes this component so that it has width d.width and height d.height . |
void | setTitle(String title) Sets the JInternalFrame title. |
void | setUI(InternalFrameUI ui) Sets the UI delegate for this JInternalFrame . |
void | setVisible(boolean aFlag) Makes the component visible or invisible. |
void | 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() Sends this internal frame to the back. |
void | toFront() Brings this internal frame to the front. |
void | updateUI() Notification from the UIManager that the look and feel has changed. |
void | validate() Validates this container and all of its subcomponents. |