Uses of Class
java.awt.Container
| Package | Description |
|---|---|
| java.applet |
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
|
| java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
| java.awt.event |
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
|
| java.beans.beancontext |
Provides classes and interfaces relating to bean context.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.colorchooser |
Contains classes and interfaces used by the
JColorChooser component. |
| javax.swing.event |
Provides for events fired by Swing components.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
|
| javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable. |
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree. |
-
Uses of Container in java.applet
Subclasses of Container in java.applet Modifier and Type Class Description classAppletDeprecated.The Applet API is deprecated, no replacement. -
Uses of Container in java.awt
Subclasses of Container in java.awt Modifier and Type Class Description classDialogA 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.classFileDialogTheFileDialogclass displays a dialog window from which the user can select a file.classFrameAFrameis a top-level window with a title and a border.classPanelPanelis the simplest container class.classScrollPaneA container class which implements automatic horizontal and/or vertical scrolling for a single child component.classWindowAWindowobject is a top-level window with no borders and no menubar.Methods in java.awt that return Container Modifier and Type Method Description ContainerKeyboardFocusManager. getCurrentFocusCycleRoot()Returns the current focus cycle root, if the current focus cycle root is in the same context as the calling thread.ContainerComponent. getFocusCycleRootAncestor()Returns the Container which is the focus cycle root of this Component's focus traversal cycle.ContainerWindow. getFocusCycleRootAncestor()Always returnsnullbecause Windows have no ancestors; they represent the top of the Component hierarchy.protected ContainerKeyboardFocusManager. 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 ContainerToolkit. getNativeContainer(Component c)Give native peers the ability to query the native container given a native component (eg the direct parent may be lightweight).ContainerComponent. getParent()Gets the parent of this component.Methods in java.awt with parameters of type Container Modifier and Type Method Description protected voidGridBagLayout. arrangeGrid(Container parent)Lays out the grid.protected voidGridBagLayout. ArrangeGrid(Container parent)This method is obsolete and supplied for backwards compatibility only; new code should callarrangeGridinstead.voidDefaultKeyboardFocusManager. downFocusCycle(Container aContainer)Moves the focus down one focus traversal cycle.abstract voidKeyboardFocusManager. downFocusCycle(Container aContainer)Moves the focus down one focus traversal cycle.voidCardLayout. first(Container parent)Flips to the first card of the container.ComponentContainerOrderFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)Returns the Component that should receive the focus after aComponent.abstract ComponentFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)Returns the Component that should receive the focus after aComponent.ComponentContainerOrderFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)Returns the Component that should receive the focus before aComponent.abstract ComponentFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)Returns the Component that should receive the focus before aComponent.ComponentContainerOrderFocusTraversalPolicy. getDefaultComponent(Container aContainer)Returns the default Component to focus.abstract ComponentFocusTraversalPolicy. getDefaultComponent(Container aContainer)Returns the default Component to focus.ComponentContainerOrderFocusTraversalPolicy. getFirstComponent(Container aContainer)Returns the first Component in the traversal cycle.abstract ComponentFocusTraversalPolicy. getFirstComponent(Container aContainer)Returns the first Component in the traversal cycle.ComponentContainerOrderFocusTraversalPolicy. getLastComponent(Container aContainer)Returns the last Component in the traversal cycle.abstract ComponentFocusTraversalPolicy. getLastComponent(Container aContainer)Returns the last Component in the traversal cycle.floatBorderLayout. getLayoutAlignmentX(Container parent)Returns the alignment along the x axis.floatCardLayout. getLayoutAlignmentX(Container parent)Returns the alignment along the x axis.floatGridBagLayout. getLayoutAlignmentX(Container parent)Returns the alignment along the x axis.floatLayoutManager2. getLayoutAlignmentX(Container target)Returns the alignment along the x axis.floatBorderLayout. getLayoutAlignmentY(Container parent)Returns the alignment along the y axis.floatCardLayout. getLayoutAlignmentY(Container parent)Returns the alignment along the y axis.floatGridBagLayout. getLayoutAlignmentY(Container parent)Returns the alignment along the y axis.floatLayoutManager2. getLayoutAlignmentY(Container target)Returns the alignment along the y axis.ComponentBorderLayout. getLayoutComponent(Container target, Object constraints)Returns the component that corresponds to the given constraint location based on the targetContainer's component orientation.protected GridBagLayoutInfoGridBagLayout. getLayoutInfo(Container parent, int sizeflag)Fills in an instance ofGridBagLayoutInfofor the current set of managed children.protected GridBagLayoutInfoGridBagLayout. GetLayoutInfo(Container parent, int sizeflag)This method is obsolete and supplied for backwards compatibility only; new code should callgetLayoutInfoinstead.protected DimensionGridBagLayout. getMinSize(Container parent, GridBagLayoutInfo info)Figures out the minimum size of the master based on the information fromgetLayoutInfo.protected DimensionGridBagLayout. GetMinSize(Container parent, GridBagLayoutInfo info)This method is obsolete and supplied for backwards compatibility only; new code should callgetMinSizeinstead.voidBorderLayout. invalidateLayout(Container target)Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.voidCardLayout. invalidateLayout(Container target)Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.voidGridBagLayout. invalidateLayout(Container target)Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.voidLayoutManager2. invalidateLayout(Container target)Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.booleanComponent. isFocusCycleRoot(Container container)Returns whether the specified Container is the focus cycle root of this Component's focus traversal cycle.booleanContainer. isFocusCycleRoot(Container container)Returns whether the specified Container is the focus cycle root of this Container's focus traversal cycle.voidCardLayout. last(Container parent)Flips to the last card of the container.voidBorderLayout. layoutContainer(Container target)Lays out the container argument using this border layout.voidCardLayout. layoutContainer(Container parent)Lays out the specified container using this card layout.voidFlowLayout. layoutContainer(Container target)Lays out the container.voidGridBagLayout. layoutContainer(Container parent)Lays out the specified container using this grid bag layout.voidGridLayout. layoutContainer(Container parent)Lays out the specified container using this layout.voidLayoutManager. layoutContainer(Container parent)Lays out the specified container.DimensionBorderLayout. maximumLayoutSize(Container target)Returns the maximum dimensions for this layout given the components in the specified target container.DimensionCardLayout. maximumLayoutSize(Container target)Returns the maximum dimensions for this layout given the components in the specified target container.DimensionGridBagLayout. maximumLayoutSize(Container target)Returns the maximum dimensions for this layout given the components in the specified target container.DimensionLayoutManager2. maximumLayoutSize(Container target)Calculates the maximum size dimensions for the specified container, given the components it contains.DimensionBorderLayout. minimumLayoutSize(Container target)Determines the minimum size of thetargetcontainer using this layout manager.DimensionCardLayout. minimumLayoutSize(Container parent)Calculates the minimum size for the specified panel.DimensionFlowLayout. minimumLayoutSize(Container target)Returns the minimum dimensions needed to layout the visible components contained in the specified target container.DimensionGridBagLayout. minimumLayoutSize(Container parent)Determines the minimum size of theparentcontainer using this grid bag layout.DimensionGridLayout. minimumLayoutSize(Container parent)Determines the minimum size of the container argument using this grid layout.DimensionLayoutManager. minimumLayoutSize(Container parent)Calculates the minimum size dimensions for the specified container, given the components it contains.voidCardLayout. next(Container parent)Flips to the next card of the specified container.DimensionBorderLayout. preferredLayoutSize(Container target)Determines the preferred size of thetargetcontainer using this layout manager, based on the components in the container.DimensionCardLayout. preferredLayoutSize(Container parent)Determines the preferred size of the container argument using this card layout.DimensionFlowLayout. preferredLayoutSize(Container target)Returns the preferred dimensions for this layout given the visible components in the specified target container.DimensionGridBagLayout. preferredLayoutSize(Container parent)Determines the preferred size of theparentcontainer using this grid bag layout.DimensionGridLayout. preferredLayoutSize(Container parent)Determines the preferred size of the container argument using this grid layout.DimensionLayoutManager. preferredLayoutSize(Container parent)Calculates the preferred size dimensions for the specified container, given the components it contains.voidCardLayout. previous(Container parent)Flips to the previous card of the specified container.voidKeyboardFocusManager. setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)Sets the current focus cycle root.voidCardLayout. show(Container parent, String name)Flips to the component that was added to this layout with the specifiedname, usingaddLayoutComponent. -
Uses of Container in java.awt.event
Methods in java.awt.event that return Container Modifier and Type Method Description ContainerHierarchyEvent. getChangedParent()Returns the parent of the Component returned bygetChanged().ContainerContainerEvent. getContainer()Returns the originator of the event.Constructors in java.awt.event with parameters of type Container Constructor Description HierarchyEvent(Component source, int id, Component changed, Container changedParent)Constructs anHierarchyEventobject to identify a change in theComponenthierarchy.HierarchyEvent(Component source, int id, Component changed, Container changedParent, long changeFlags)Constructs anHierarchyEventobject to identify a change in theComponenthierarchy. -
Uses of Container in java.beans.beancontext
Methods in java.beans.beancontext that return Container Modifier and Type Method Description ContainerBeanContextContainerProxy. getContainer()Gets thejava.awt.Containerassociated with thisBeanContext. -
Uses of Container in javax.swing
Subclasses of Container in javax.swing Modifier and Type Class Description classAbstractButtonDefines common behaviors for buttons and menu items.classBoxA lightweight container that uses a BoxLayout object as its layout manager.static classBox.FillerAn implementation of a lightweight component that participates in layout but has no view.classCellRendererPaneThis class is inserted in between cell renderers and the components that use them.classDefaultListCellRendererRenders an item in a list.static classDefaultListCellRenderer.UIResourceA subclass of DefaultListCellRenderer that implements UIResource.classJAppletDeprecated.The Applet API is deprecated, no replacement.classJButtonAn implementation of a "push" button.classJCheckBoxAn implementation of a check box -- an item that can be selected or deselected, and which displays its state to the user.classJCheckBoxMenuItemA menu item that can be selected or deselected.classJColorChooserJColorChooserprovides a pane of controls designed to allow a user to manipulate and select a color.classJComboBox<E>A component that combines a button or editable field and a drop-down list.classJComponentThe base class for all Swing components except top-level containers.classJDesktopPaneA container used to create a multiple-document interface or a virtual desktop.classJDialogThe main class for creating a dialog window.classJEditorPaneA text component to edit various kinds of content.classJFileChooserJFileChooserprovides a simple mechanism for the user to choose a file.classJFormattedTextFieldJFormattedTextFieldextendsJTextFieldadding support for formatting arbitrary values, as well as retrieving a particular object once the user has edited the text.classJFrameAn extended version ofjava.awt.Framethat adds support for the JFC/Swing component architecture.classJInternalFrameA 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 classJInternalFrame.JDesktopIconThis component represents an iconified version of aJInternalFrame.classJLabelA display area for a short text string or an image, or both.classJLayer<V extends Component>JLayeris a universal decorator for Swing components which enables you to implement various advanced painting effects as well as receive notifications of allAWTEvents generated within its borders.classJLayeredPaneJLayeredPaneadds depth to a JFC/Swing container, allowing components to overlap each other when needed.classJList<E>A component that displays a list of objects and allows the user to select one or more items.classJMenuAn implementation of a menu -- a popup window containingJMenuItems that is displayed when the user selects an item on theJMenuBar.classJMenuBarAn implementation of a menu bar.classJMenuItemAn implementation of an item in a menu.classJOptionPaneJOptionPanemakes it easy to pop up a standard dialog box that prompts users for a value or informs them of something.classJPanelJPanelis a generic lightweight container.classJPasswordFieldJPasswordFieldis 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.classJPopupMenuAn implementation of a popup menu -- a small window that pops up and displays a series of choices.static classJPopupMenu.SeparatorA popup menu-specific separator.classJProgressBarA component that visually displays the progress of some task.classJRadioButtonAn implementation of a radio button -- an item that can be selected or deselected, and which displays its state to the user.classJRadioButtonMenuItemAn implementation of a radio button menu item.classJRootPaneA lightweight container used behind the scenes byJFrame,JDialog,JWindow,JApplet, andJInternalFrame.classJScrollBarAn implementation of a scrollbar.classJScrollPaneProvides a scrollable view of a lightweight component.protected classJScrollPane.ScrollBarBy defaultJScrollPanecreates scrollbars that are instances of this class.classJSeparatorJSeparatorprovides a general purpose component for implementing divider lines - most commonly used as a divider between menu items that breaks them up into logical groupings.classJSliderA component that lets the user graphically select a value by sliding a knob within a bounded interval.classJSpinnerA single line input field that lets the user select a number or an object value from an ordered sequence.static classJSpinner.DateEditorAn editor for aJSpinnerwhose model is aSpinnerDateModel.static classJSpinner.DefaultEditorA simple base class for more specialized editors that displays a read-only view of the model's current value with aJFormattedTextField.static classJSpinner.ListEditorAn editor for aJSpinnerwhose model is aSpinnerListModel.static classJSpinner.NumberEditorAn editor for aJSpinnerwhose model is aSpinnerNumberModel.classJSplitPaneJSplitPaneis used to divide two (and only two)Components.classJTabbedPaneA component that lets the user switch between a group of components by clicking on a tab with a given title and/or icon.classJTableTheJTableis used to display and edit regular two-dimensional tables of cells.classJTextAreaAJTextAreais a multi-line area that displays plain text.classJTextFieldJTextFieldis a lightweight component that allows the editing of a single line of text.classJTextPaneA text component that can be marked up with attributes that are represented graphically.classJToggleButtonAn implementation of a two-state button.classJToolBarJToolBarprovides a component that is useful for displaying commonly usedActions or controls.static classJToolBar.SeparatorA toolbar-specific separator.classJToolTipUsed to display a "Tip" for a Component.classJTreeA control that displays a set of hierarchical data as an outline.classJViewportThe "viewport" or "porthole" through which you see the underlying information.classJWindowAJWindowis a container that can be displayed anywhere on the user's desktop.Fields in javax.swing declared as Container Modifier and Type Field Description protected ContainerJRootPane. contentPaneThe content pane.Methods in javax.swing that return Container Modifier and Type Method Description protected ContainerJRootPane. createContentPane()Called by the constructor methods to create the defaultcontentPane.static ContainerSwingUtilities. getAncestorNamed(String name, Component comp)Convenience method for searching abovecompin the component hierarchy and returns the first object ofnameit finds.static ContainerSwingUtilities. getAncestorOfClass(Class<?> c, Component comp)Convenience method for searching abovecompin the component hierarchy and returns the first object of classcit finds.ContainerJApplet. getContentPane()Deprecated.Returns the contentPane object for this applet.ContainerJDialog. getContentPane()Returns thecontentPaneobject for this dialog.ContainerJFrame. getContentPane()Returns thecontentPaneobject for this frame.ContainerJInternalFrame. getContentPane()Returns the content pane for this internal frame.ContainerJRootPane. getContentPane()Returns the content pane -- the container that holds the components parented by the root pane.ContainerJWindow. getContentPane()Returns theContainerwhich is thecontentPanefor this window.ContainerRootPaneContainer. getContentPane()Returns the contentPane.ContainerJInternalFrame. getFocusCycleRootAncestor()Always returnsnullbecauseJInternalFrames must always be roots of a focus traversal cycle.ContainerBoxLayout. getTarget()Returns the container that uses this layout manager.ContainerOverlayLayout. getTarget()Returns the container that uses this layout manager.ContainerJComponent. getTopLevelAncestor()Returns the top-level ancestor of this component (either the containingWindoworApplet), ornullif this component has not been added to any container.static ContainerSwingUtilities. getUnwrappedParent(Component component)Returns the first ancestor of thecomponentwhich is not an instance ofJLayer.Methods in javax.swing with parameters of type Container Modifier and Type Method Description ComponentDefaultFocusManager. getComponentAfter(Container aContainer, Component aComponent)Returns the component after.ComponentLayoutFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)Returns the Component that should receive the focus after aComponent.ComponentSortingFocusTraversalPolicy. getComponentAfter(Container aContainer, Component aComponent)Returns the Component that should receive the focus after aComponent.ComponentDefaultFocusManager. getComponentBefore(Container aContainer, Component aComponent)Returns the component before.ComponentLayoutFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)Returns the Component that should receive the focus before aComponent.ComponentSortingFocusTraversalPolicy. getComponentBefore(Container aContainer, Component aComponent)Returns the Component that should receive the focus before aComponent.abstract intLayoutStyle. getContainerGap(JComponent component, int position, Container parent)Returns the amount of space to place between the component and specified edge of its parent.ComponentSortingFocusTraversalPolicy. getDefaultComponent(Container aContainer)Returns the default Component to focus.ComponentDefaultFocusManager. getFirstComponent(Container aContainer)Returns the first component.ComponentLayoutFocusTraversalPolicy. getFirstComponent(Container aContainer)Returns the first Component in the traversal cycle.ComponentSortingFocusTraversalPolicy. getFirstComponent(Container aContainer)Returns the first Component in the traversal cycle.ComponentDefaultFocusManager. getLastComponent(Container aContainer)Returns the last component.ComponentLayoutFocusTraversalPolicy. getLastComponent(Container aContainer)Returns the last Component in the traversal cycle.ComponentSortingFocusTraversalPolicy. getLastComponent(Container aContainer)Returns the last Component in the traversal cycle.floatBoxLayout. getLayoutAlignmentX(Container target)Returns the alignment along the X axis for the container.floatGroupLayout. getLayoutAlignmentX(Container parent)Returns the alignment along the x axis.floatOverlayLayout. getLayoutAlignmentX(Container target)Returns the alignment along the x axis for the container.floatSpringLayout. getLayoutAlignmentX(Container p)Returns 0.5f (centered).floatBoxLayout. getLayoutAlignmentY(Container target)Returns the alignment along the Y axis for the container.floatGroupLayout. getLayoutAlignmentY(Container parent)Returns the alignment along the y axis.floatOverlayLayout. getLayoutAlignmentY(Container target)Returns the alignment along the y axis for the container.floatSpringLayout. getLayoutAlignmentY(Container p)Returns 0.5f (centered).abstract intLayoutStyle. getPreferredGap(JComponent component1, JComponent component2, LayoutStyle.ComponentPlacement type, int position, Container parent)Returns the amount of space to use between two components.voidBoxLayout. invalidateLayout(Container target)Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.voidGroupLayout. invalidateLayout(Container parent)Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.voidOverlayLayout. invalidateLayout(Container target)Indicates a child has changed its layout related information, which causes any cached calculations to be flushed.voidBoxLayout. layoutContainer(Container target)Called by the AWT when the specified container needs to be laid out.voidGroupLayout. layoutContainer(Container parent)Lays out the specified container.voidJRootPane.RootLayout. layoutContainer(Container parent)Instructs the layout manager to perform the layout for the specified container.voidJSpinner.DefaultEditor. layoutContainer(Container parent)Resize the one (and only) child to completely fill the area within the parents insets.voidOverlayLayout. layoutContainer(Container target)Called by the AWT when the specified container needs to be laid out.voidScrollPaneLayout. layoutContainer(Container parent)Lays out the scrollpane.voidViewportLayout. layoutContainer(Container parent)Called by the AWT when the specified container needs to be laid out.DimensionBoxLayout. maximumLayoutSize(Container target)Returns the maximum dimensions the target container can use to lay out the components it contains.DimensionGroupLayout. maximumLayoutSize(Container parent)Returns the maximum size for the specified container.DimensionJRootPane.RootLayout. maximumLayoutSize(Container target)Returns the maximum amount of space the layout can use.DimensionOverlayLayout. maximumLayoutSize(Container target)Returns the maximum dimensions needed to lay out the components contained in the specified target container.DimensionBoxLayout. minimumLayoutSize(Container target)Returns the minimum dimensions needed to lay out the components contained in the specified target container.DimensionGroupLayout. minimumLayoutSize(Container parent)Returns the minimum size for the specified container.DimensionJRootPane.RootLayout. minimumLayoutSize(Container parent)Returns the minimum amount of space the layout needs.DimensionJSpinner.DefaultEditor. minimumLayoutSize(Container parent)Returns the minimum size of first (and only) child plus the size of the parents insets.DimensionOverlayLayout. minimumLayoutSize(Container target)Returns the minimum dimensions needed to lay out the components contained in the specified target container.DimensionScrollPaneLayout. minimumLayoutSize(Container parent)The minimum size of aScrollPaneis 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.DimensionViewportLayout. minimumLayoutSize(Container parent)Returns the minimum dimensions needed to layout the components contained in the specified target container.voidCellRendererPane. 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).voidCellRendererPane. 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.voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)Calls this.paintComponent() with the rectangles x,y,width,height fields.static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h)Paints a component to the specifiedGraphics.static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)Paints a component to the specifiedGraphics.DimensionBoxLayout. preferredLayoutSize(Container target)Returns the preferred dimensions for this layout, given the components in the specified target container.DimensionGroupLayout. preferredLayoutSize(Container parent)Returns the preferred size for the specified container.DimensionJRootPane.RootLayout. preferredLayoutSize(Container parent)Returns the amount of space the layout would like to have.DimensionJSpinner.DefaultEditor. preferredLayoutSize(Container parent)Returns the preferred size of first (and only) child plus the size of the parents insets.DimensionOverlayLayout. preferredLayoutSize(Container target)Returns the preferred dimensions for this layout given the components in the specified target container.DimensionScrollPaneLayout. preferredLayoutSize(Container parent)The preferred size of aScrollPaneis 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.DimensionViewportLayout. preferredLayoutSize(Container parent)Returns the preferred dimensions for this layout given the components in the specified target container.voidJApplet. setContentPane(Container contentPane)Deprecated.Sets the contentPane property.voidJDialog. setContentPane(Container contentPane)Sets thecontentPaneproperty.voidJFrame. setContentPane(Container contentPane)Sets thecontentPaneproperty.voidJInternalFrame. setContentPane(Container c)Sets thisJInternalFrame'scontentPaneproperty.voidJRootPane. setContentPane(Container content)Sets the content pane -- the container that holds the components parented by the root pane.voidJWindow. setContentPane(Container contentPane)Sets thecontentPaneproperty for this window.voidRootPaneContainer. setContentPane(Container contentPane)The "contentPane" is the primary container for application specific components.Constructors in javax.swing with parameters of type Container Constructor Description BoxLayout(Container target, int axis)Creates a layout manager that will lay out components along the given axis.GroupLayout(Container host)Creates aGroupLayoutfor the specifiedContainer.OverlayLayout(Container target)Constructs a layout manager that performs overlay arrangement of the children. -
Uses of Container in javax.swing.colorchooser
Subclasses of Container in javax.swing.colorchooser Modifier and Type Class Description classAbstractColorChooserPanelThis is the abstract superclass for color choosers. -
Uses of Container in javax.swing.event
Methods in javax.swing.event that return Container Modifier and Type Method Description ContainerAncestorEvent. getAncestor()Returns the ancestor that the event actually occurred on.ContainerAncestorEvent. getAncestorParent()Returns the parent of the ancestor the event actually occurred on.Constructors in javax.swing.event with parameters of type Container Constructor Description AncestorEvent(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
Subclasses of Container in javax.swing.plaf.basic Modifier and Type Class Description classBasicArrowButtonJButton object that draws a scaled Arrow in one of the cardinal directions.classBasicComboBoxRendererComboBox rendererstatic classBasicComboBoxRenderer.UIResourceA subclass of BasicComboBoxRenderer that implements UIResource.classBasicComboPopupThis is a basic implementation of theComboPopupinterface.classBasicInternalFrameTitlePaneThe class that manages a basic title barclassBasicInternalFrameTitlePane.SystemMenuBarThis class should be treated as a "protected" inner class.classBasicSplitPaneDividerDivider used by BasicSplitPaneUI.protected classBasicToolBarUI.DragWindowThe window which appears during dragging theJToolBar.Methods in javax.swing.plaf.basic that return Container Modifier and Type Method Description protected ContainerBasicOptionPaneUI. createButtonArea()Creates and returns aContainercontaining the buttons.protected ContainerBasicOptionPaneUI. createMessageArea()Messaged frominstallComponentsto create aContainercontaining the body of the message.protected ContainerBasicOptionPaneUI. createSeparator()Returns a separator.Methods in javax.swing.plaf.basic with parameters of type Container Modifier and Type Method Description protected voidBasicOptionPaneUI. addButtonComponents(Container container, Object[] buttons, int initialIndex)Creates the appropriate object to represent each of the objects inbuttonsand adds it tocontainer.protected voidBasicOptionPaneUI. addIcon(Container top)Creates and adds a JLabel representing the icon returned fromgetIcontotop.protected voidBasicOptionPaneUI. addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated)Creates the appropriate object to representmsgand places it intocontainer.protected voidBasicOptionPaneUI. burstStringInto(Container c, String d, int maxll)Recursively creates newJLabelinstances to representd.floatBasicSplitPaneUI.BasicHorizontalLayoutManager. getLayoutAlignmentX(Container target)Returns the alignment along the x axis.floatBasicSplitPaneUI.BasicHorizontalLayoutManager. getLayoutAlignmentY(Container target)Returns the alignment along the y axis.voidBasicSplitPaneUI.BasicHorizontalLayoutManager. invalidateLayout(Container c)Does nothing.voidBasicSplitPaneUI.BasicHorizontalLayoutManager. layoutContainer(Container container)Does the actual layout.DimensionBasicSplitPaneUI.BasicHorizontalLayoutManager. maximumLayoutSize(Container target)Returns the maximum layout size, which is Integer.MAX_VALUE in both directions.DimensionBasicSplitPaneUI.BasicHorizontalLayoutManager. minimumLayoutSize(Container container)Returns the minimum size needed to contain the children.DimensionBasicSplitPaneUI.BasicHorizontalLayoutManager. preferredLayoutSize(Container container)Returns the preferred size needed to contain the children.Constructors in javax.swing.plaf.basic with parameters of type Container Constructor Description DefaultMenuLayout(Container target, int axis)Constructs a new instance ofDefaultMenuLayout. -
Uses of Container in javax.swing.plaf.metal
Subclasses of Container in javax.swing.plaf.metal Modifier and Type Class Description classMetalComboBoxButtonJButton subclass to help out MetalComboBoxUIclassMetalComboBoxUI.MetalComboPopupDeprecated.As of Java 2 platform v1.4.protected classMetalFileChooserUI.FileRendererDeprecated.As of JDK version 9.classMetalFileChooserUI.FilterComboBoxRendererRender different type sizes and styles.classMetalInternalFrameTitlePaneClass that manages a JLF title barclassMetalScrollButtonJButton object for Metal scrollbar arrows.Methods in javax.swing.plaf.metal with parameters of type Container Modifier and Type Method Description voidMetalComboBoxUI. layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)Lays out theJComboBoxin theparentcontainer.voidMetalComboBoxUI.MetalComboBoxLayoutManager. superLayout(Container parent)Lays out the parent container. -
Uses of Container in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return Container Modifier and Type Method Description protected ContainerSynthOptionPaneUI. createMessageArea()Called fromBasicOptionPaneUI.installComponents()to create aContainercontaining the body of the message. -
Uses of Container in javax.swing.table
Subclasses of Container in javax.swing.table Modifier and Type Class Description classDefaultTableCellRendererThe standard class for rendering (displaying) individual cells in aJTable.static classDefaultTableCellRenderer.UIResourceA subclass ofDefaultTableCellRendererthat implementsUIResource.classJTableHeaderThis is the object which manages the header of theJTable. -
Uses of Container in javax.swing.text
Subclasses of Container in javax.swing.text Modifier and Type Class Description classJTextComponentJTextComponentis the base class for swing text components.Methods in javax.swing.text that return Container Modifier and Type Method Description ContainerView. getContainer()Fetches the container hosting the view. -
Uses of Container in javax.swing.tree
Subclasses of Container in javax.swing.tree Modifier and Type Class Description classDefaultTreeCellEditor.DefaultTextFieldTextFieldused when no editor is supplied.classDefaultTreeCellEditor.EditorContainerContainer responsible for placing theeditingComponent.classDefaultTreeCellRendererDisplays an entry in a tree.Fields in javax.swing.tree declared as Container Modifier and Type Field Description protected ContainerDefaultTreeCellEditor. editingContainerEditing container, will contain theeditorComponent.Methods in javax.swing.tree that return Container Modifier and Type Method Description protected ContainerDefaultTreeCellEditor. createContainer()Creates the container to manage placement ofeditingComponent.