Example usage for java.awt LayoutManager interface-usage

List of usage examples for java.awt LayoutManager interface-usage

Introduction

In this page you can find the example usage for java.awt LayoutManager interface-usage.

Usage

From source file com.equitysoft.cellspark.ProportionalLayout.java

/**
 *
 * A horizontal layout layout manager that allocates horizontal space in specified proportions.
 * The same can be done with GridBagLayout but GridBagLayout has a problem when space is resized
 * particularly when moving a JSplitPane divider - the proportions will suddenly change
 * for no apparent reason. ProportionalLayout solves the problem.

From source file VerticalLayout.java

/**
 *
 * A vertical layout manager similar to java.awt.FlowLayout.
 * Like FlowLayout components do not expand to fill available space except when the horizontal alignment
 * is <code>BOTH</code>
 * in which case components are stretched horizontally. Unlike FlowLayout, components will not wrap to form another

From source file VerticalFlowLayout.java

/**
 *  A vertical flow layout is similar to a flow layuot but it layouts the
 *  components vertically instead of horizontally.
 *
 * @author     Vassili Dzuba
 * @since      March 24, 2001

From source file FormLayoutTester.java

/**
 * A layout manager that lays out components along a central axis
 */
class FormLayout implements LayoutManager {
    private int left;
    private int right;

From source file FunLayout.java

public class FunLayout implements LayoutManager {
    // Using this layout manager, you can place components at exact
    // locations (x, y, width, height) and then determine how they
    // behave when the window containing them (their parent) is resized.
    //
    // sample use:

From source file CircleLayoutDemo.java

/**
 * This layout manager allows you to place components to form a circle within a
 * Container
 * 
 * @author Oscar De Leon oedeleon@netscape.net
 * 

From source file WrapperLayout.java

/**
 * @author J. H. S.
 */
public class WrapperLayout implements LayoutManager {
    /* (non-Javadoc)
     * @see java.awt.LayoutManager#addLayoutComponent(java.lang.String, java.awt.Component)

From source file CenterLayout.java

/**
 * @author J. H. S.
 */
public class CenterLayout implements LayoutManager {
    public void addLayoutComponent(String arg0, Component arg1) {
    }

From source file SquareLayout.java

/**
 * A LayoutManager which lays out a single component making sure its height is
 * always the same as its width. If the parent container's width differs from
 * it height, the child will be laid out according to its x and y alignment.
 */

From source file StackLayout.java

/**
 * Similar to BoxLayout, uses an orientation to determine if the contents
 * should be arranged horizontally or vertically.  By default, Resizes each
 * item to equal width or height (depending on the orientation) based on the
 * maximum preferred width or height of all items.
 * @author Christopher Bach