public class JDesktopPaneLayout extends Object
JDesktopPanes.| Constructor and Description |
|---|
JDesktopPaneLayout(JDesktopPane desktopPane)
Creates a new desktop pane layout for the given desktop pane
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(JDesktopPaneLayout child)
Add the given desktop pane layout as a child to this one
|
void |
add(JDesktopPaneLayout child,
Object constraints)
Add the given desktop pane layout as a child to this one
|
void |
add(JDesktopPaneLayout child,
Object constraints,
int index)
Add the given desktop pane layout as a child to this one
|
void |
add(JInternalFrame internalFrame)
Add the given internal frame to this layout manager.
|
void |
add(JInternalFrame internalFrame,
Object constraints)
Add the given internal frame to this layout manager.
|
void |
add(JInternalFrame internalFrame,
Object constraints,
int index)
Add the given internal frame to this layout manager.
|
JDesktopPaneLayout |
createChild()
Create a new desktop pane layout that may be added as a child
to this layout
|
void |
remove(JDesktopPaneLayout child)
Remove the given child layout
|
void |
setLayout(LayoutManager layoutManager)
Set the delegate layout manager for this layout
|
void |
validate()
Validate the layout after internal frames have been added
or removed
|
public JDesktopPaneLayout(JDesktopPane desktopPane)
desktopPane - The desktop panepublic JDesktopPaneLayout createChild()
public void add(JDesktopPaneLayout child)
child - The child to addIllegalArgumentException - If the given child was not
created by calling createChild() on this layoutpublic void add(JDesktopPaneLayout child, Object constraints)
child - The child to addconstraints - The constraints.
See Container.add(Component, Object)IllegalArgumentException - If the given child was not
created by calling createChild() on this layoutpublic void add(JDesktopPaneLayout child, Object constraints, int index)
child - The child to addconstraints - The constraints.
See Container.add(Component, Object)index - The index.
See Container.add(Component, Object, int)IllegalArgumentException - If the given child was not
created by calling createChild() on this layoutpublic void remove(JDesktopPaneLayout child)
child - The child to removeIllegalArgumentException - If the given child was not
created by calling createChild() on this layoutpublic void setLayout(LayoutManager layoutManager)
layoutManager - The delegate layout managerpublic void add(JInternalFrame internalFrame)
internalFrame - The internal frame to addpublic void add(JInternalFrame internalFrame, Object constraints)
internalFrame - The internal frame to addconstraints - The constraints.
See Container.add(Component, Object)public void add(JInternalFrame internalFrame, Object constraints, int index)
internalFrame - The internal frame to addconstraints - The constraints.
See Container.add(Component, Object)index - The index.
See Container.add(Component, Object, int)public void validate()
Copyright © 2022. All rights reserved.