public class JInternalFrame extends JComponent implements Accessible, WindowConstants, RootPaneContainer
Modifier and Type | Class and Description |
---|---|
protected class |
JInternalFrame.AccessibleJInternalFrame
Provides the accessibility features for the
JInternalFrame
component. |
static class |
JInternalFrame.JDesktopIcon
This class represents the JInternalFrame while it is iconified.
|
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
closable
Whether the JInternalFrame is closable.
|
static String |
CONTENT_PANE_PROPERTY
The property fired in a PropertyChangeEvent when the contentPane property
changes.
|
protected JInternalFrame.JDesktopIcon |
desktopIcon
The JDesktopIcon that represents the JInternalFrame while it is
iconified.
|
static String |
FRAME_ICON_PROPERTY
The property fired in a PropertyChangeEvent when the frameIcon property
changes.
|
protected Icon |
frameIcon
The icon used in the JMenuBar in the TitlePane.
|
static String |
GLASS_PANE_PROPERTY
The property fired in a PropertyChangeEvent when the glassPane property
changes.
|
protected boolean |
iconable
Whether the JInternalFrame can be iconified.
|
static String |
IS_CLOSED_PROPERTY
The property fired in a PropertyChangeEvent when the closed property
changes.
|
static String |
IS_ICON_PROPERTY
The property fired in a PropertyChangeEvent when the icon property
changes.
|
static String |
IS_MAXIMUM_PROPERTY
The property fired in a PropertyChangeEvent when the maximum property
changes.
|
static String |
IS_SELECTED_PROPERTY
The property fired in a PropertyChangeEvent when the selected property
changes.
|
protected boolean |
isClosed
Whether the JInternalFrame is closed.
|
protected boolean |
isIcon
Whether the JInternalFrame has been iconified.
|
protected boolean |
isMaximum
Whether the JInternalFrame has been maximized.
|
protected boolean |
isSelected
Whether the JInternalFrame is the active frame.
|
static String |
LAYERED_PANE_PROPERTY
The property fired in a PropertyChangeEvent when the layeredPane property
changes.
|
protected boolean |
maximizable
Whether the JInternalFrame can be maximized.
|
static String |
MENU_BAR_PROPERTY
The property fired in a PropertyChangeEvent when the jMenuBar property
changes.
|
protected boolean |
resizable
Whether the JInternalFrame is resizable.
|
static String |
ROOT_PANE_PROPERTY
The property fired in a PropertyChangeEvent when the rootPane property
changes.
|
protected JRootPane |
rootPane
The rootPane of the JInternalFrame.
|
protected boolean |
rootPaneCheckingEnabled
Whether the JInternalFrame has rootPaneChecking enabled.
|
protected String |
title
The title on the TitlePane of the JInternalFrame.
|
static String |
TITLE_PROPERTY
The property fired in a PropertyChangeEvent when the title property
changes.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
JInternalFrame()
Creates a new JInternalFrame object that has an empty string for its
title, and is non-resizable, non-maximizable, non-iconifiable, and
non-closable.
|
JInternalFrame(String title)
Creates a new JInternalFrame object with the given title and is
non-resizable, non-maximizable, non-iconifiable, and non-closable.
|
JInternalFrame(String title,
boolean resizable)
Creates a new JInternalFrame object with the given title and resizable
properties.
|
JInternalFrame(String title,
boolean resizable,
boolean closable)
Creates a new JInternalFrame object with the given title, resizable, and
closable properties.
|
JInternalFrame(String title,
boolean resizable,
boolean closable,
boolean maximizable)
Creates a new JInternalFrame object with the given title, resizable,
closable and maximizable properties.
|
JInternalFrame(String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable)
Creates a new JInternalFrame object with the given title, resizable,
closable, maximizable and iconifiable properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
This method adds Components to this Container.
|
void |
addInternalFrameListener(InternalFrameListener l)
This method adds an InternalFrameListener to this JInternalFrame.
|
protected JRootPane |
createRootPane()
This method is used to create a root pane for the JInternalFrame.
|
void |
dispose()
This method makes this JInternalFrame invisible, unselected and closed.
|
void |
doDefaultCloseAction()
This method is used for closing this JInternalFrame.
|
protected void |
fireInternalFrameEvent(int id)
This method fires an InternalFrameEvent to the listeners.
|
AccessibleContext |
getAccessibleContext()
Returns the object that provides accessibility features for this
JInternalFrame component. |
Container |
getContentPane()
This method returns the Content Pane for this JInternalFrame.
|
int |
getDefaultCloseOperation()
Returns a code for the default action taken when this
JInternalFrame is closed. |
JInternalFrame.JDesktopIcon |
getDesktopIcon()
Returns the
JDesktopIcon that represents this
JInternalFrame while it is iconified. |
JDesktopPane |
getDesktopPane()
This method searches this JInternalFrame ancestors for an instance of
JDesktopPane.
|
Container |
getFocusCycleRootAncestor()
This method returns null because this must always be the root of a focus
traversal.
|
Component |
getFocusOwner()
This method returns the child Component that will receive focus if this
JInternalFrame is selected.
|
Icon |
getFrameIcon()
This method returns the Frame Icon (the icon used in the JInternalFrame
TitlePane and iconified frame).
|
Component |
getGlassPane()
This method returns the Glass Pane used with this JInternalFrame.
|
InternalFrameListener[] |
getInternalFrameListeners()
This method returns an array of InternalFrameListeners that are listening
to this JInternalFrame.
|
JMenuBar |
getJMenuBar()
This method returns the JMenuBar for this JInternalFrame.
|
int |
getLayer()
This method returns the layer that this JInternalFrame resides in.
|
JLayeredPane |
getLayeredPane()
This method returns the LayeredPane for this JInternalFrame.
|
JMenuBar |
getMenuBar()
Deprecated.
1.0.3
|
Component |
getMostRecentFocusOwner()
This method returns the child Component that will receive focus when the
JInternalFrame is selected.
|
Rectangle |
getNormalBounds()
This method returns the bounds of the JInternalFrame if it is not
maximized.
|
JRootPane |
getRootPane()
This method returns the Root Pane for this JInternalFrame.
|
String |
getTitle()
Returns the frame's title.
|
InternalFrameUI |
getUI()
This method returns the UI used to represent the JInternalFrame.
|
String |
getUIClassID()
This method returns a String identifier that is used to determine which
class acts as the JInternalFrame's UI.
|
String |
getWarningString()
This method returns null.
|
void |
hide()
This method deselects this JInternalFrame and hides it.
|
boolean |
isClosable()
This method returns whether this JInternalFrame is closable.
|
boolean |
isClosed()
This method returns whether this JInternalFrame has been closed.
|
boolean |
isFocusCycleRoot()
This must always return true.
|
boolean |
isIcon()
This method returns whether this JInternalFrame is currently iconified.
|
boolean |
isIconifiable()
This method returns whether the JInternalFrame can be iconified.
|
boolean |
isMaximizable()
This method returns whether this JInternalFrame can be maximized.
|
boolean |
isMaximum()
This method returns whether this JInternalFrame is currently maximized.
|
boolean |
isResizable()
This method returns whether this JInternalFrame is resizable.
|
protected boolean |
isRootPaneCheckingEnabled()
This method returns whether root pane checking is enabled.
|
boolean |
isSelected()
This method returns whether this JInternalFrame is selected.
|
void |
moveToBack()
A helper method that moves this JInternalFrame to the back if the parent
is a JLayeredPane.
|
void |
moveToFront()
A helper method that moves this JInternalFrame to the front if the parent
is a JLayeredPane.
|
void |
pack()
This method causes the children of this JInternalFrame to be laid out.
|
protected void |
paintComponent(Graphics g)
This method is overridden to allow for speedier painting while this
JInternalFramme is being dragged.
|
protected String |
paramString()
An implementation dependent string describing the current state of this
JInternalFrame instance. |
void |
remove(Component comp)
This method removes the given Component from the Container.
|
void |
removeInternalFrameListener(InternalFrameListener l)
This method removes an InternalFrameListener from this JInternalFrame.
|
void |
reshape(int x,
int y,
int width,
int height)
This method resizes and positions this JInternalFrame.
|
void |
restoreSubcomponentFocus()
This method gives focus to the last child Component that had focus.
|
void |
setClosable(boolean b)
This method sets whether this JInternalFrame can be closed.
|
void |
setClosed(boolean b)
This method closes the JInternalFrame if the given boolean is true.
|
void |
setContentPane(Container c)
This method sets the Container to be used as a Content Pane for this
JInternalFrame.
|
void |
setDefaultCloseOperation(int operation)
Sets a code for the action to be taken when this
JInternalFrame is closed. |
void |
setDesktopIcon(JInternalFrame.JDesktopIcon d)
Sets the
JDesktopIcon instance that represents this
JInternalFrame while it is iconified and, if the new icon is
not the same instance as the existing icon, sends a
PropertyChangeEvent (with the property name
"desktopIcon" ) to all registered listeners.. |
void |
setFocusCycleRoot(boolean focusCycleRoot)
This method does nothing because this must be the root of a focus
traversal cycle.
|
void |
setFrameIcon(Icon icon)
This method sets the Icon to be used in two places.
|
void |
setGlassPane(Component glass)
This method sets the Glass Pane used with this JInternalFrame.
|
void |
setIcon(boolean b)
This method iconifies or deiconifies this JInternalFrame given the
boolean argument.
|
void |
setIconifiable(boolean b)
This method sets whether the JInternalFrame can be iconified.
|
void |
setJMenuBar(JMenuBar b)
This method sets the JMenuBar to be used with this JInternalFrame.
|
void |
setLayer(int layer)
A helper method that set the layer that this JInternalFrame resides in.
|
void |
setLayer(Integer layer)
A helper method that sets the layer that this JInternalFrame resides in.
|
void |
setLayeredPane(JLayeredPane layered)
This method sets the JLayeredPane to use with this JInternalFrame.
|
void |
setLayout(LayoutManager manager)
This method sets the Layout Manager used in the JInternalFrame.
|
void |
setMaximizable(boolean b)
This method sets whether the JInternalFrame can be maximized.
|
void |
setMaximum(boolean b)
This method sets the JInternalFrame to maximized (if the given argument
is true) or restores the JInternalFrame to its normal bounds otherwise.
|
void |
setMenuBar(JMenuBar m)
Deprecated.
1.0.3
|
void |
setNormalBounds(Rectangle r)
This method sets the bounds that this JInternalFrame will be restored to.
|
void |
setResizable(boolean b)
This method sets whether the JInternalFrame can be resized by a user
action (like dragging at the frame borders).
|
protected void |
setRootPane(JRootPane root)
This method sets the Root Pane for this JInternalFrame.
|
protected void |
setRootPaneCheckingEnabled(boolean enabled)
This method sets whether root pane checking is enabled.
|
void |
setSelected(boolean selected)
This method sets whether this JInternalFrame is the selected frame in the
JDesktopPane (or other container).
|
void |
setTitle(String title)
Sets the title for the
JInternalFrame and sends a
PropertyChangeEvent (with the property name
TITLE_PROPERTY ) to all registered listeners. |
void |
setUI(InternalFrameUI ui)
This method is used to set the UI responsible for the JInternalFrame.
|
void |
show()
This method displays the JInternalFrame.
|
void |
toBack()
This method causes the JInternalFrame to be brough to back in the
z-order.
|
void |
toFront()
This method causes the JInternalFrame to be brought to front in the
z-order.
|
void |
updateUI()
This method resets the UI to the Look and Feel defaults.
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String CONTENT_PANE_PROPERTY
public static final String FRAME_ICON_PROPERTY
public static final String GLASS_PANE_PROPERTY
public static final String IS_CLOSED_PROPERTY
public static final String IS_ICON_PROPERTY
public static final String IS_MAXIMUM_PROPERTY
public static final String IS_SELECTED_PROPERTY
public static final String LAYERED_PANE_PROPERTY
public static final String MENU_BAR_PROPERTY
public static final String ROOT_PANE_PROPERTY
public static final String TITLE_PROPERTY
protected boolean closable
protected boolean iconable
protected boolean isClosed
protected boolean isIcon
protected boolean isMaximum
protected boolean isSelected
protected boolean maximizable
protected boolean rootPaneCheckingEnabled
protected boolean resizable
protected JInternalFrame.JDesktopIcon desktopIcon
public JInternalFrame()
public JInternalFrame(String title)
title
- The title displayed in the JInternalFrame.public JInternalFrame(String title, boolean resizable)
title
- The title displayed in the JInternalFrame.resizable
- Whether the JInternalFrame is resizable.public JInternalFrame(String title, boolean resizable, boolean closable)
title
- The title displayed in the JInternalFrame.resizable
- Whether the JInternalFrame is resizable.closable
- Whether the JInternalFrame is closable.public JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)
title
- The title displayed in the JInternalFrame.resizable
- Whether the JInternalFrame is resizable.closable
- Whether the JInternalFrame is closable.maximizable
- Whether the JInternalFrame is maximizable.public JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
title
- The title displayed in the JInternalFrame.resizable
- Whether the JInternalFrame is resizable.closable
- Whether the JInternalFrame is closable.maximizable
- Whether the JInternalFrame is maximizable.iconifiable
- Whether the JInternalFrame is iconifiable.protected void addImpl(Component comp, Object constraints, int index)
public void addInternalFrameListener(InternalFrameListener l)
l
- The listener to add.protected JRootPane createRootPane()
public void dispose()
public void doDefaultCloseAction()
protected void fireInternalFrameEvent(int id)
id
- The type of event being fired. See InternalFrameEvent.public AccessibleContext getAccessibleContext()
JInternalFrame
component.getAccessibleContext
in interface Accessible
getAccessibleContext
in class JComponent
JInternalFrame.AccessibleJInternalFrame
).public Container getContentPane()
getContentPane
in interface RootPaneContainer
public int getDefaultCloseOperation()
JInternalFrame
is closed.WindowConstants.DO_NOTHING_ON_CLOSE
,
WindowConstants.HIDE_ON_CLOSE
, or
WindowConstants.DISPOSE_ON_CLOSE
).setDefaultCloseOperation(int)
,
doDefaultCloseAction()
public JInternalFrame.JDesktopIcon getDesktopIcon()
JDesktopIcon
that represents this
JInternalFrame
while it is iconified.public JDesktopPane getDesktopPane()
public final Container getFocusCycleRootAncestor()
getFocusCycleRootAncestor
in class Component
public Component getFocusOwner()
public Icon getFrameIcon()
public Component getGlassPane()
getGlassPane
in interface RootPaneContainer
public InternalFrameListener[] getInternalFrameListeners()
public JMenuBar getJMenuBar()
public int getLayer()
public JLayeredPane getLayeredPane()
getLayeredPane
in interface RootPaneContainer
public JMenuBar getMenuBar()
public Component getMostRecentFocusOwner()
public Rectangle getNormalBounds()
public JRootPane getRootPane()
getRootPane
in interface RootPaneContainer
getRootPane
in class JComponent
public String getTitle()
null
).setTitle(String)
public InternalFrameUI getUI()
public String getUIClassID()
getUIClassID
in class JComponent
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public final String getWarningString()
public void hide()
public boolean isClosable()
public boolean isClosed()
public final boolean isFocusCycleRoot()
isFocusCycleRoot
in class Container
public boolean isIcon()
public boolean isIconifiable()
public boolean isMaximizable()
public boolean isMaximum()
public boolean isResizable()
protected boolean isRootPaneCheckingEnabled()
public boolean isSelected()
public void moveToBack()
public void moveToFront()
public void pack()
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
g
- The Graphics object to paint with.JComponent.paint(java.awt.Graphics)
,
JComponent.paintBorder(java.awt.Graphics)
,
JComponent.paintChildren(java.awt.Graphics)
protected String paramString()
JInternalFrame
instance.paramString
in class JComponent
JInternalFrame
instance.public void remove(Component comp)
public void removeInternalFrameListener(InternalFrameListener l)
l
- The listener to remove.public void reshape(int x, int y, int width, int height)
reshape
in class JComponent
x
- The x position of this JInternalFrame.y
- The y position of this JInternalFrame.width
- The width of this JInternalFrame.height
- The height of this JInternalFrame.public void restoreSubcomponentFocus()
public void setClosable(boolean b)
b
- Whether this JInternalFrame can be closed.public void setClosed(boolean b) throws PropertyVetoException
b
- Whether the JInternalFrame will be closed.PropertyVetoException
- If a VetoableChangeListener vetoes the change.public void setContentPane(Container c)
setContentPane
in interface RootPaneContainer
c
- The Container to use as a Content Pane.public void setDefaultCloseOperation(int operation)
JInternalFrame
is closed. Note that no validation is
performed on the operation
code, any integer will be
accepted (nevertheless, you should pass in one of the listed values).operation
- one of WindowConstants.DO_NOTHING_ON_CLOSE
,
WindowConstants.HIDE_ON_CLOSE
or
WindowConstants.DISPOSE_ON_CLOSE
.getDefaultCloseOperation()
,
doDefaultCloseAction()
public void setDesktopIcon(JInternalFrame.JDesktopIcon d)
JDesktopIcon
instance that represents this
JInternalFrame
while it is iconified and, if the new icon is
not the same instance as the existing icon, sends a
PropertyChangeEvent
(with the property name
"desktopIcon"
) to all registered listeners..d
- the icon.getDesktopIcon()
public final void setFocusCycleRoot(boolean focusCycleRoot)
setFocusCycleRoot
in class Container
focusCycleRoot
- Not used.public void setFrameIcon(Icon icon)
icon
- The Icon used in the TitlePane JMenuBar and iconified frames.public void setGlassPane(Component glass)
setGlassPane
in interface RootPaneContainer
glass
- The Glass Pane to use with this JInternalFrame.public void setIcon(boolean b) throws PropertyVetoException
b
- Whether this JInternalFrame is to be iconified or deiconified.PropertyVetoException
- DOCUMENT ME!public void setIconifiable(boolean b)
b
- Whether the JInternalFrame can be iconified.public void setJMenuBar(JMenuBar b)
b
- The JMenuBar to be used with this JInternalFrame.public void setLayer(int layer)
layer
- The layer to place this JInternalFrame in.public void setLayer(Integer layer)
layer
- The layer to place this JInternalFrame in.public void setLayeredPane(JLayeredPane layered)
setLayeredPane
in interface RootPaneContainer
layered
- The JLayeredPane to use as a layeredPane.public void setMaximizable(boolean b)
b
- Whether this JInternalFrame can be maximized.public void setLayout(LayoutManager manager)
public void setMaximum(boolean b) throws PropertyVetoException
b
- Whether this JInteralFrame will be maximized or restored.PropertyVetoException
- If a VetoableChangeListener vetoes the change.public void setMenuBar(JMenuBar m)
m
- The JMenuBar to use with this JInternalFrame.public void setNormalBounds(Rectangle r)
r
- The bounds that this JInternalFrame will be restored to.public void setResizable(boolean b)
b
- Whether this JInternalFramer can be resized.protected void setRootPane(JRootPane root)
root
- The Root Pane for this JInternalFrame.protected void setRootPaneCheckingEnabled(boolean enabled)
enabled
- Whether root pane checking is enabled.public void setSelected(boolean selected) throws PropertyVetoException
selected
- Whether this JInternalFrame will become selected or
deselected.PropertyVetoException
- If a VetoableChangeListener vetoes the change.public void setTitle(String title)
JInternalFrame
and sends a
PropertyChangeEvent
(with the property name
TITLE_PROPERTY
) to all registered listeners.title
- the new title (null
permitted).getTitle()
public void show()
public void setUI(InternalFrameUI ui)
ui
- The UI responsible for the JInternalFrame.public void toBack()
public void toFront()
public void updateUI()
updateUI
in class JComponent