java.awt

Interface LayoutManager

  • All Known Subinterfaces:
    LayoutManager2
    All Known Implementing Classes:
    BorderLayout, CardLayout, FlowLayout, GridBagLayout, GridLayout
    public interface LayoutManager
    Defines the interface for classes that know how to lay out Containers.

    Swing's painting architecture assumes the children of a JComponent do not overlap. If a JComponent's LayoutManager allows children to overlap, the JComponent must override isOptimizedDrawingEnabled to return false.

    See Also:
    Container, JComponent.isOptimizedDrawingEnabled()
    • Methods 
      Modifier and Type Method and Description
      Ordinary member indicator addLayoutComponent Reveal DetailHide Detail
      If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
      Ordinary member indicator layoutContainer Reveal DetailHide Detail
      Lays out the specified container.
      Ordinary member indicator minimumLayoutSize Reveal DetailHide Detail
      Calculates the minimum size dimensions for the specified container, given the components it contains.
      Ordinary member indicator preferredLayoutSize Reveal DetailHide Detail
      Calculates the preferred size dimensions for the specified container, given the components it contains.
      Ordinary member indicator removeLayoutComponent Reveal DetailHide Detail
      Removes the specified component from the layout.
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge