Uses of Class
java.awt.Container
Package
Description
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides classes and interfaces relating to bean context.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Contains classes and interfaces used by the
JColorChooser
component.Provides for events fired by Swing components.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides classes and interfaces that deal with editable and noneditable text
components.
Provides classes and interfaces for dealing with
javax.swing.JTree
.-
Uses of Container in java.applet
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement. -
Uses of Container in java.awt
Modifier and TypeClassDescriptionclass
A Dialog is a top-level window with a title and a border that is typically used to take some form of input from the user.class
TheFileDialog
class displays a dialog window from which the user can select a file.class
AFrame
is a top-level window with a title and a border.class
Panel
is the simplest container class.class
A container class which implements automatic horizontal and/or vertical scrolling for a single child component.class
AWindow
object is a top-level window with no borders and no menubar.Modifier and TypeMethodDescriptionKeyboardFocusManager.getCurrentFocusCycleRoot()
Returns the current focus cycle root, if the current focus cycle root is in the same context as the calling thread.Component.getFocusCycleRootAncestor()
Returns the Container which is the focus cycle root of this Component's focus traversal cycle.final Container
Window.getFocusCycleRootAncestor()
Always returnsnull
because Windows have no ancestors; they represent the top of the Component hierarchy.protected Container
KeyboardFocusManager.getGlobalCurrentFocusCycleRoot()
Returns the current focus cycle root, even if the calling thread is in a different context than the current focus cycle root.protected static Container
Toolkit.getNativeContainer
(Component c) Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).Component.getParent()
Gets the parent of this component.Modifier and TypeMethodDescriptionprotected void
GridBagLayout.arrangeGrid
(Container parent) Lays out the grid.protected void
GridBagLayout.ArrangeGrid
(Container parent) This method is obsolete and supplied for backwards compatibility only; new code should callarrangeGrid
instead.void
DefaultKeyboardFocusManager.downFocusCycle
(Container aContainer) Moves the focus down one focus traversal cycle.abstract void
KeyboardFocusManager.downFocusCycle
(Container aContainer) Moves the focus down one focus traversal cycle.void
Flips to the first card of the container.ContainerOrderFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.abstract Component
FocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.ContainerOrderFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.abstract Component
FocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.ContainerOrderFocusTraversalPolicy.getDefaultComponent
(Container aContainer) Returns the default Component to focus.abstract Component
FocusTraversalPolicy.getDefaultComponent
(Container aContainer) Returns the default Component to focus.ContainerOrderFocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.abstract Component
FocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.ContainerOrderFocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.abstract Component
FocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.float
BorderLayout.getLayoutAlignmentX
(Container parent) Returns the alignment along the x axis.float
CardLayout.getLayoutAlignmentX
(Container parent) Returns the alignment along the x axis.float
GridBagLayout.getLayoutAlignmentX
(Container parent) Returns the alignment along the x axis.float
LayoutManager2.getLayoutAlignmentX
(Container target) Returns the alignment along the x axis.float
BorderLayout.getLayoutAlignmentY
(Container parent) Returns the alignment along the y axis.float
CardLayout.getLayoutAlignmentY
(Container parent) Returns the alignment along the y axis.float
GridBagLayout.getLayoutAlignmentY
(Container parent) Returns the alignment along the y axis.float
LayoutManager2.getLayoutAlignmentY
(Container target) Returns the alignment along the y axis.BorderLayout.getLayoutComponent
(Container target, Object constraints) Returns the component that corresponds to the given constraint location based on the targetContainer
's component orientation.protected GridBagLayoutInfo
GridBagLayout.getLayoutInfo
(Container parent, int sizeflag) Fills in an instance ofGridBagLayoutInfo
for the current set of managed children.protected GridBagLayoutInfo
GridBagLayout.GetLayoutInfo
(Container parent, int sizeflag) This method is obsolete and supplied for backwards compatibility only; new code should callgetLayoutInfo
instead.protected Dimension
GridBagLayout.getMinSize
(Container parent, GridBagLayoutInfo info) Figures out the minimum size of the parent based on the information fromgetLayoutInfo
.protected Dimension
GridBagLayout.GetMinSize
(Container parent, GridBagLayoutInfo info) This method is obsolete and supplied for backwards compatibility only; new code should callgetMinSize
instead.void
BorderLayout.invalidateLayout
(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.void
CardLayout.invalidateLayout
(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.void
GridBagLayout.invalidateLayout
(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.void
LayoutManager2.invalidateLayout
(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.boolean
Component.isFocusCycleRoot
(Container container) Returns whether the specified Container is the focus cycle root of this Component's focus traversal cycle.boolean
Container.isFocusCycleRoot
(Container container) Returns whether the specified Container is the focus cycle root of this Container's focus traversal cycle.void
Flips to the last card of the container.void
BorderLayout.layoutContainer
(Container target) Lays out the container argument using this border layout.void
CardLayout.layoutContainer
(Container parent) Lays out the specified container using this card layout.void
FlowLayout.layoutContainer
(Container target) Lays out the container.void
GridBagLayout.layoutContainer
(Container parent) Lays out the specified container using this grid bag layout.void
GridLayout.layoutContainer
(Container parent) Lays out the specified container using this layout.void
LayoutManager.layoutContainer
(Container parent) Lays out the specified container.BorderLayout.maximumLayoutSize
(Container target) Returns the maximum dimensions for this layout given the components in the specified target container.CardLayout.maximumLayoutSize
(Container target) Returns the maximum dimensions for this layout given the components in the specified target container.GridBagLayout.maximumLayoutSize
(Container target) Returns the maximum dimensions for this layout given the components in the specified target container.LayoutManager2.maximumLayoutSize
(Container target) Calculates the maximum size dimensions for the specified container, given the components it contains.BorderLayout.minimumLayoutSize
(Container target) Determines the minimum size of thetarget
container using this layout manager.CardLayout.minimumLayoutSize
(Container parent) Calculates the minimum size for the specified panel.FlowLayout.minimumLayoutSize
(Container target) Returns the minimum dimensions needed to layout the visible components contained in the specified target container.GridBagLayout.minimumLayoutSize
(Container parent) Determines the minimum size of theparent
container using this grid bag layout.GridLayout.minimumLayoutSize
(Container parent) Determines the minimum size of the container argument using this grid layout.LayoutManager.minimumLayoutSize
(Container parent) Calculates the minimum size dimensions for the specified container, given the components it contains.void
Flips to the next card of the specified container.BorderLayout.preferredLayoutSize
(Container target) Determines the preferred size of thetarget
container using this layout manager, based on the components in the container.CardLayout.preferredLayoutSize
(Container parent) Determines the preferred size of the container argument using this card layout.FlowLayout.preferredLayoutSize
(Container target) Returns the preferred dimensions for this layout given the visible components in the specified target container.GridBagLayout.preferredLayoutSize
(Container parent) Determines the preferred size of theparent
container using this grid bag layout.GridLayout.preferredLayoutSize
(Container parent) Determines the preferred size of the container argument using this grid layout.LayoutManager.preferredLayoutSize
(Container parent) Calculates the preferred size dimensions for the specified container, given the components it contains.void
Flips to the previous card of the specified container.void
KeyboardFocusManager.setGlobalCurrentFocusCycleRoot
(Container newFocusCycleRoot) Sets the current focus cycle root.void
Flips to the component that was added to this layout with the specifiedname
, usingaddLayoutComponent
. -
Uses of Container in java.awt.event
Modifier and TypeMethodDescriptionHierarchyEvent.getChangedParent()
Returns the parent of the Component returned bygetChanged()
.ContainerEvent.getContainer()
Returns the originator of the event.ModifierConstructorDescriptionHierarchyEvent
(Component source, int id, Component changed, Container changedParent) Constructs anHierarchyEvent
object to identify a change in theComponent
hierarchy.HierarchyEvent
(Component source, int id, Component changed, Container changedParent, long changeFlags) Constructs anHierarchyEvent
object to identify a change in theComponent
hierarchy. -
Uses of Container in java.beans.beancontext
Modifier and TypeMethodDescriptionBeanContextContainerProxy.getContainer()
Gets thejava.awt.Container
associated with thisBeanContext
. -
Uses of Container in javax.swing
Modifier and TypeClassDescriptionclass
Defines common behaviors for buttons and menu items.class
A lightweight container that uses a BoxLayout object as its layout manager.static class
An implementation of a lightweight component that participates in layout but has no view.class
This class is inserted in between cell renderers and the components that use them.class
Renders an item in a list.static class
A subclass of DefaultListCellRenderer that implements UIResource.class
Deprecated, for removal: This API element is subject to removal in a future version.The Applet API is deprecated, no replacement.class
An implementation of a "push" button.class
An implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user.class
A menu item that can be selected or deselected.class
JColorChooser
provides a pane of controls designed to allow a user to manipulate and select a color.class
JComboBox<E>
A component that combines a button or editable field and a drop-down list.class
The base class for all Swing components except top-level containers.class
A container used to create a multiple-document interface or a virtual desktop.class
The main class for creating a dialog window.class
A text component to edit various kinds of content.class
JFileChooser
provides a simple mechanism for the user to choose a file.class
JFormattedTextField
extendsJTextField
adding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.class
An extended version ofjava.awt.Frame
that adds support for the JFC/Swing component architecture.class
A lightweight object that provides many of the features of a native frame, including dragging, closing, becoming an icon, resizing, title display, and support for a menu bar.static class
This component represents an iconified version of aJInternalFrame
.class
A display area for a short text string or an image, or both.final class
JLayer
is a universal decorator for Swing components which enables you to implement various advanced painting effects as well as receive notifications of allAWTEvent
s generated within its borders.class
JLayeredPane
adds depth to a JFC/Swing container, allowing components to overlap each other when needed.class
JList<E>
A component that displays a list of objects and allows the user to select one or more items.class
An implementation of a menu -- a popup window containingJMenuItem
s that is displayed when the user selects an item on theJMenuBar
.class
An implementation of a menu bar.class
An implementation of an item in a menu.class
JOptionPane
makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.class
JPanel
is a generic lightweight container.class
JPasswordField
is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.class
An implementation of a popup menu -- a small window that pops up and displays a series of choices.static class
A popup menu-specific separator.class
A component that visually displays the progress of some task.class
An implementation of a radio button -- an item that can be selected or deselected, and which displays its state to the user.class
An implementation of a radio button menu item.class
A lightweight container used behind the scenes byJFrame
,JDialog
,JWindow
,JApplet
, andJInternalFrame
.class
An implementation of a scrollbar.class
Provides a scrollable view of a lightweight component.protected class
By defaultJScrollPane
creates scrollbars that are instances of this class.class
JSeparator
provides a general purpose component for implementing divider lines - most commonly used as a divider between menu items that breaks them up into logical groupings.class
A component that lets the user graphically select a value by sliding a knob within a bounded interval.class
A single line input field that lets the user select a number or an object value from an ordered sequence.static class
An editor for aJSpinner
whose model is aSpinnerDateModel
.static class
A simple base class for more specialized editors that displays a read-only view of the model's current value with aJFormattedTextField
.static class
An editor for aJSpinner
whose model is aSpinnerListModel
.static class
An editor for aJSpinner
whose model is aSpinnerNumberModel
.class
JSplitPane
is used to divide two (and only two)Component
s.class
A component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.class
TheJTable
is used to display and edit regular two-dimensional tables of cells.class
AJTextArea
is a multi-line area that displays plain text.class
JTextField
is a lightweight component that allows the editing of a single line of text.class
A text component that can be marked up with attributes that are represented graphically.class
An implementation of a two-state button.class
JToolBar
provides a component that is useful for displaying commonly usedAction
s or controls.static class
A toolbar-specific separator.class
Used to display a "Tip" for a Component.class
A control that displays a set of hierarchical data as an outline.class
The "viewport" or "porthole" through which you see the underlying information.class
AJWindow
is a container that can be displayed anywhere on the user's desktop.Modifier and TypeMethodDescriptionprotected Container
JRootPane.createContentPane()
Called by the constructor methods to create the defaultcontentPane
.static Container
SwingUtilities.getAncestorNamed
(String name, Component comp) Convenience method for searching abovecomp
in the component hierarchy and returns the first object ofname
it finds.static Container
SwingUtilities.getAncestorOfClass
(Class<?> c, Component comp) Convenience method for searching abovecomp
in the component hierarchy and returns the first object of classc
it finds.JApplet.getContentPane()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the contentPane object for this applet.JDialog.getContentPane()
Returns thecontentPane
object for this dialog.JFrame.getContentPane()
Returns thecontentPane
object for this frame.JInternalFrame.getContentPane()
Returns the content pane for this internal frame.JRootPane.getContentPane()
Returns the content pane -- the container that holds the components parented by the root pane.JWindow.getContentPane()
Returns theContainer
which is thecontentPane
for this window.RootPaneContainer.getContentPane()
Returns the contentPane.final Container
JInternalFrame.getFocusCycleRootAncestor()
Always returnsnull
becauseJInternalFrame
s must always be roots of a focus traversal cycle.final Container
BoxLayout.getTarget()
Returns the container that uses this layout manager.final Container
OverlayLayout.getTarget()
Returns the container that uses this layout manager.JComponent.getTopLevelAncestor()
Returns the top-level ancestor of this component (either the containingWindow
orApplet
), ornull
if this component has not been added to any container.static Container
SwingUtilities.getUnwrappedParent
(Component component) Returns the first ancestor of thecomponent
which is not an instance ofJLayer
.Modifier and TypeMethodDescriptionDefaultFocusManager.getComponentAfter
(Container aContainer, Component aComponent) Returns the component after.LayoutFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.SortingFocusTraversalPolicy.getComponentAfter
(Container aContainer, Component aComponent) Returns the Component that should receive the focus after aComponent.DefaultFocusManager.getComponentBefore
(Container aContainer, Component aComponent) Returns the component before.LayoutFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.SortingFocusTraversalPolicy.getComponentBefore
(Container aContainer, Component aComponent) Returns the Component that should receive the focus before aComponent.abstract int
LayoutStyle.getContainerGap
(JComponent component, int position, Container parent) Returns the amount of space to place between the component and specified edge of its parent.SortingFocusTraversalPolicy.getDefaultComponent
(Container aContainer) Returns the default Component to focus.DefaultFocusManager.getFirstComponent
(Container aContainer) Returns the first component.LayoutFocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.SortingFocusTraversalPolicy.getFirstComponent
(Container aContainer) Returns the first Component in the traversal cycle.DefaultFocusManager.getLastComponent
(Container aContainer) Returns the last component.LayoutFocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.SortingFocusTraversalPolicy.getLastComponent
(Container aContainer) Returns the last Component in the traversal cycle.float
BoxLayout.getLayoutAlignmentX
(Container target) Returns the alignment along the X axis for the container.float
GroupLayout.getLayoutAlignmentX
(Container parent) Returns the alignment along the x axis.float
JRootPane.RootLayout.getLayoutAlignmentX
(Container target) float
OverlayLayout.getLayoutAlignmentX
(Container target) Returns the alignment along the x axis for the container.float
SpringLayout.getLayoutAlignmentX
(Container p) Returns 0.5f (centered).float
BoxLayout.getLayoutAlignmentY
(Container target) Returns the alignment along the Y axis for the container.float
GroupLayout.getLayoutAlignmentY
(Container parent) Returns the alignment along the y axis.float
JRootPane.RootLayout.getLayoutAlignmentY
(Container target) float
OverlayLayout.getLayoutAlignmentY
(Container target) Returns the alignment along the y axis for the container.float
SpringLayout.getLayoutAlignmentY
(Container p) Returns 0.5f (centered).abstract int
LayoutStyle.getPreferredGap
(JComponent component1, JComponent component2, LayoutStyle.ComponentPlacement type, int position, Container parent) Returns the amount of space to use between two components.void
BoxLayout.invalidateLayout
(Container target) Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.void
GroupLayout.invalidateLayout
(Container parent) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.void
JRootPane.RootLayout.invalidateLayout
(Container target) void
OverlayLayout.invalidateLayout
(Container target) Indicates a child has changed its layout related information, which causes any cached calculations to be flushed.void
SpringLayout.invalidateLayout
(Container p) void
BoxLayout.layoutContainer
(Container target) Called by the AWT when the specified container needs to be laid out.void
GroupLayout.layoutContainer
(Container parent) Lays out the specified container.void
JRootPane.RootLayout.layoutContainer
(Container parent) Instructs the layout manager to perform the layout for the specified container.void
JSpinner.DefaultEditor.layoutContainer
(Container parent) Resize the one (and only) child to completely fill the area within the parents insets.void
OverlayLayout.layoutContainer
(Container target) Called by the AWT when the specified container needs to be laid out.void
ScrollPaneLayout.layoutContainer
(Container parent) Lays out the scrollpane.void
SpringLayout.layoutContainer
(Container parent) void
ViewportLayout.layoutContainer
(Container parent) Called by the AWT when the specified container needs to be laid out.BoxLayout.maximumLayoutSize
(Container target) Returns the maximum dimensions the target container can use to lay out the components it contains.GroupLayout.maximumLayoutSize
(Container parent) Returns the maximum size for the specified container.JRootPane.RootLayout.maximumLayoutSize
(Container target) Returns the maximum amount of space the layout can use.OverlayLayout.maximumLayoutSize
(Container target) Returns the maximum dimensions needed to lay out the components contained in the specified target container.SpringLayout.maximumLayoutSize
(Container parent) BoxLayout.minimumLayoutSize
(Container target) Returns the minimum dimensions needed to lay out the components contained in the specified target container.GroupLayout.minimumLayoutSize
(Container parent) Returns the minimum size for the specified container.JRootPane.RootLayout.minimumLayoutSize
(Container parent) Returns the minimum amount of space the layout needs.JSpinner.DefaultEditor.minimumLayoutSize
(Container parent) Returns the minimum size of first (and only) child plus the size of the parents insets.OverlayLayout.minimumLayoutSize
(Container target) Returns the minimum dimensions needed to lay out the components contained in the specified target container.ScrollPaneLayout.minimumLayoutSize
(Container parent) The minimum size of aScrollPane
is the size of the insets plus minimum size of the viewport, plus the scrollpane's viewportBorder insets, plus the minimum size of the visible headers, plus the minimum size of the scrollbars whose displayPolicy isn't NEVER.SpringLayout.minimumLayoutSize
(Container parent) ViewportLayout.minimumLayoutSize
(Container parent) Returns the minimum dimensions needed to layout the components contained in the specified target container.void
CellRendererPane.paintComponent
(Graphics g, Component c, Container p, int x, int y, int w, int h) Calls this.paintComponent(g, c, p, x, y, w, h, false).void
CellRendererPane.paintComponent
(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) Paint a cell renderer component c on graphics object g.void
CellRendererPane.paintComponent
(Graphics g, Component c, Container p, Rectangle r) Calls this.paintComponent(g, c, p, r.x, r.y, r.width, r.height) wherer
is the inputRectangle
parameter.static void
SwingUtilities.paintComponent
(Graphics g, Component c, Container p, int x, int y, int w, int h) Paints a component to the specifiedGraphics
.static void
SwingUtilities.paintComponent
(Graphics g, Component c, Container p, Rectangle r) Paints a component to the specifiedGraphics
.BoxLayout.preferredLayoutSize
(Container target) Returns the preferred dimensions for this layout, given the components in the specified target container.GroupLayout.preferredLayoutSize
(Container parent) Returns the preferred size for the specified container.JRootPane.RootLayout.preferredLayoutSize
(Container parent) Returns the amount of space the layout would like to have.JSpinner.DefaultEditor.preferredLayoutSize
(Container parent) Returns the preferred size of first (and only) child plus the size of the parents insets.OverlayLayout.preferredLayoutSize
(Container target) Returns the preferred dimensions for this layout given the components in the specified target container.ScrollPaneLayout.preferredLayoutSize
(Container parent) The preferred size of aScrollPane
is the size of the insets, plus the preferred size of the viewport, plus the preferred size of the visible headers, plus the preferred size of the scrollbars that will appear given the current view and the current scrollbar displayPolicies.SpringLayout.preferredLayoutSize
(Container parent) ViewportLayout.preferredLayoutSize
(Container parent) Returns the preferred dimensions for this layout given the components in the specified target container.void
JApplet.setContentPane
(Container contentPane) Deprecated, for removal: This API element is subject to removal in a future version.Sets the contentPane property.void
JDialog.setContentPane
(Container contentPane) Sets thecontentPane
property.void
JFrame.setContentPane
(Container contentPane) Sets thecontentPane
property.void
JInternalFrame.setContentPane
(Container c) Sets thisJInternalFrame
'scontentPane
property.void
JRootPane.setContentPane
(Container content) Sets the content pane -- the container that holds the components parented by the root pane.void
JWindow.setContentPane
(Container contentPane) Sets thecontentPane
property for this window.void
RootPaneContainer.setContentPane
(Container contentPane) The "contentPane" is the primary container for application specific components.ModifierConstructorDescriptionCreates a layout manager that will lay out components along the given axis.GroupLayout
(Container host) Creates aGroupLayout
for the specifiedContainer
.OverlayLayout
(Container target) Constructs a layout manager that performs overlay arrangement of the children. -
Uses of Container in javax.swing.colorchooser
Modifier and TypeClassDescriptionclass
This is the abstract superclass for color choosers. -
Uses of Container in javax.swing.event
Modifier and TypeMethodDescriptionAncestorEvent.getAncestor()
Returns the ancestor that the event actually occurred on.AncestorEvent.getAncestorParent()
Returns the parent of the ancestor the event actually occurred on.ModifierConstructorDescriptionAncestorEvent
(JComponent source, int id, Container ancestor, Container ancestorParent) Constructs an AncestorEvent object to identify a change in an ancestor-component's display-status. -
Uses of Container in javax.swing.plaf.basic
Modifier and TypeClassDescriptionclass
JButton object that draws a scaled Arrow in one of the cardinal directions.class
ComboBox rendererstatic class
A subclass of BasicComboBoxRenderer that implements UIResource.class
This is a basic implementation of theComboPopup
interface.class
The class that manages a basic title barclass
This class should be treated as a "protected" inner class.class
Divider used by BasicSplitPaneUI.protected class
The window which appears during dragging theJToolBar
.Modifier and TypeMethodDescriptionprotected Container
BasicOptionPaneUI.createButtonArea()
Creates and returns aContainer
containing the buttons.protected Container
BasicOptionPaneUI.createMessageArea()
Messaged frominstallComponents
to create aContainer
containing the body of the message.protected Container
BasicOptionPaneUI.createSeparator()
Returns a separator.Modifier and TypeMethodDescriptionprotected void
BasicOptionPaneUI.addButtonComponents
(Container container, Object[] buttons, int initialIndex) Creates the appropriate object to represent each of the objects inbuttons
and adds it tocontainer
.protected void
Creates and adds a JLabel representing the icon returned fromgetIcon
totop
.protected void
BasicOptionPaneUI.addMessageComponents
(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) Creates the appropriate object to representmsg
and places it intocontainer
.protected void
BasicOptionPaneUI.burstStringInto
(Container c, String d, int maxll) Recursively creates newJLabel
instances to representd
.float
BasicSplitPaneUI.BasicHorizontalLayoutManager.getLayoutAlignmentX
(Container target) Returns the alignment along the x axis.float
BasicSplitPaneUI.BasicHorizontalLayoutManager.getLayoutAlignmentY
(Container target) Returns the alignment along the y axis.void
BasicSplitPaneUI.BasicHorizontalLayoutManager.invalidateLayout
(Container c) Does nothing.void
BasicComboBoxUI.ComboBoxLayoutManager.layoutContainer
(Container parent) void
BasicInternalFrameTitlePane.TitlePaneLayout.layoutContainer
(Container c) void
BasicInternalFrameUI.InternalFrameLayout.layoutContainer
(Container c) Lays out the specified container.void
BasicOptionPaneUI.ButtonAreaLayout.layoutContainer
(Container container) void
BasicScrollBarUI.layoutContainer
(Container scrollbarContainer) void
BasicSplitPaneDivider.DividerLayout.layoutContainer
(Container c) void
BasicSplitPaneUI.BasicHorizontalLayoutManager.layoutContainer
(Container container) Does the actual layout.void
BasicTabbedPaneUI.TabbedPaneLayout.layoutContainer
(Container parent) Lays out the specified container.BasicSplitPaneUI.BasicHorizontalLayoutManager.maximumLayoutSize
(Container target) Returns the maximum layout size, which is Integer.MAX_VALUE in both directions.BasicComboBoxUI.ComboBoxLayoutManager.minimumLayoutSize
(Container parent) BasicInternalFrameTitlePane.TitlePaneLayout.minimumLayoutSize
(Container c) BasicInternalFrameUI.InternalFrameLayout.minimumLayoutSize
(Container c) Calculates the minimum size dimensions for the specified container, given the components it contains.BasicOptionPaneUI.ButtonAreaLayout.minimumLayoutSize
(Container c) BasicScrollBarUI.minimumLayoutSize
(Container scrollbarContainer) BasicSplitPaneDivider.DividerLayout.minimumLayoutSize
(Container c) BasicSplitPaneUI.BasicHorizontalLayoutManager.minimumLayoutSize
(Container container) Returns the minimum size needed to contain the children.BasicTabbedPaneUI.TabbedPaneLayout.minimumLayoutSize
(Container parent) BasicComboBoxUI.ComboBoxLayoutManager.preferredLayoutSize
(Container parent) BasicInternalFrameTitlePane.TitlePaneLayout.preferredLayoutSize
(Container c) BasicInternalFrameUI.InternalFrameLayout.preferredLayoutSize
(Container c) Calculates the preferred size dimensions for the specified container, given the components it contains.BasicOptionPaneUI.ButtonAreaLayout.preferredLayoutSize
(Container c) BasicScrollBarUI.preferredLayoutSize
(Container scrollbarContainer) BasicSplitPaneDivider.DividerLayout.preferredLayoutSize
(Container c) BasicSplitPaneUI.BasicHorizontalLayoutManager.preferredLayoutSize
(Container container) Returns the preferred size needed to contain the children.BasicTabbedPaneUI.TabbedPaneLayout.preferredLayoutSize
(Container parent) ModifierConstructorDescriptionDefaultMenuLayout
(Container target, int axis) Constructs a new instance ofDefaultMenuLayout
. -
Uses of Container in javax.swing.plaf.metal
Modifier and TypeClassDescriptionclass
JButton subclass to help out MetalComboBoxUIclass
Deprecated.As of Java 2 platform v1.4.protected class
Deprecated.As of JDK version 9.class
Render different type sizes and styles.class
Class that manages a JLF title barclass
JButton object for Metal scrollbar arrows.Modifier and TypeMethodDescriptionvoid
MetalComboBoxUI.layoutComboBox
(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) Lays out theJComboBox
in theparent
container.void
MetalComboBoxUI.MetalComboBoxLayoutManager.superLayout
(Container parent) Lays out the parent container. -
Uses of Container in javax.swing.plaf.synth
Modifier and TypeMethodDescriptionprotected Container
SynthOptionPaneUI.createMessageArea()
Called fromBasicOptionPaneUI.installComponents()
to create aContainer
containing the body of the message. -
Uses of Container in javax.swing.table
Modifier and TypeClassDescriptionclass
The standard class for rendering (displaying) individual cells in aJTable
.static class
A subclass ofDefaultTableCellRenderer
that implementsUIResource
.class
This is the object which manages the header of theJTable
. -
Uses of Container in javax.swing.text
Modifier and TypeClassDescriptionclass
JTextComponent
is the base class for swing text components. -
Uses of Container in javax.swing.tree
Modifier and TypeClassDescriptionclass
TextField
used when no editor is supplied.class
Container responsible for placing theeditingComponent
.class
Displays an entry in a tree.Modifier and TypeFieldDescriptionprotected Container
DefaultTreeCellEditor.editingContainer
Editing container, will contain theeditorComponent
.Modifier and TypeMethodDescriptionprotected Container
DefaultTreeCellEditor.createContainer()
Creates the container to manage placement ofeditingComponent
.