public static final enum javax.swing
LayoutStyle.ComponentPlacement


Show All Login
Java SE 6
  
Extends: Enum
Contained within: LayoutStyle
Details
ComponentPlacement is an enumeration of the possible ways two components can be placed relative to each other. ComponentPlacement is used by the LayoutStyle method getPreferredGap. Refer to LayoutStyle for more information.
since1.6
See also getPreferredGap(JComponent,JComponent, ComponentPlacement,int,Container)

Enum constants
final public static LayoutStyle.ComponentPlacement RELATED
Enumeration value indicating the two components are visually related and will be placed in the same parent. For example, a JLabel providing a label for a JTextField is typically visually associated with the JTextField; the constant RELATED is used for this.
final public static LayoutStyle.ComponentPlacement UNRELATED
Enumeration value indicating the two components are visually unrelated and will be placed in the same parent. For example, groupings of components are usually visually separated; the constant UNRELATED is used for this.
final public static LayoutStyle.ComponentPlacement INDENT
Enumeration value indicating the distance to indent a component is being requested. For example, often times the children of a label will be horizontally indented from the label. To determine the preferred distance for such a gap use the INDENT type.

This value is typically only useful with a direction of EAST or WEST.


Methods
public static LayoutStyle.ComponentPlacement valueOf(String name)
public static LayoutStyle.ComponentPlacement[] values()