Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Uses of Interface
java.awt.LayoutManager

Packages that use LayoutManager
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
 

Uses of LayoutManager in java.awt
 

Subinterfaces of LayoutManager in java.awt
 interface LayoutManager2
          Defines an interface for classes that know how to layout Containers based on a layout constraints object.
 

Classes in java.awt that implement LayoutManager
 class BorderLayout
          A border layout lays out a container, arranging and resizing its components to fit in five regions: north, south, east, west, and center.
 class CardLayout
          A CardLayout object is a layout manager for a container.
 class FlowLayout
          A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph.
 class GridBagLayout
          The GridBagLayout class is a flexible layout manager that aligns components vertically and horizontally, without requiring that the components be of the same size.
 class GridLayout
          The GridLayout class is a layout manager that lays out a container's components in a rectangular grid.
 

Methods in java.awt that return LayoutManager
 LayoutManager Container.getLayout()
          Gets the layout manager for this container.
 

Methods in java.awt with parameters of type LayoutManager
 void ScrollPane.setLayout(LayoutManager mgr)
          Sets the layout manager for this container.
 void Container.setLayout(LayoutManager mgr)
          Sets the layout manager for this container.
 

Constructors in java.awt with parameters of type LayoutManager
Panel(LayoutManager layout)
          Creates a new panel with the specified layout manager.
 


JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.