public static enum LayoutStyle.ComponentPlacement extends Enum<LayoutStyle.ComponentPlacement>
ComponentPlacementis an enumeration of the possible ways two components can be placed relative to each other.
ComponentPlacementis used by the
getPreferredGap. Refer to
LayoutStylefor more information.
|Enum Constant and Description|
Enumeration value indicating the distance to indent a component is being requested.
Enumeration value indicating the two components are visually related and will be placed in the same parent.
Enumeration value indicating the two components are visually unrelated and will be placed in the same parent.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final LayoutStyle.ComponentPlacement RELATED
JLabelproviding a label for a
JTextFieldis typically visually associated with the
JTextField; the constant
RELATEDis used for this.
public static final LayoutStyle.ComponentPlacement UNRELATED
UNRELATEDis used for this.
public static final LayoutStyle.ComponentPlacement INDENT
This value is typically only useful with a direction of
public static LayoutStyle.ComponentPlacement values()
for (LayoutStyle.ComponentPlacement c : LayoutStyle.ComponentPlacement.values()) System.out.println(c);
public static LayoutStyle.ComponentPlacement valueOf(String name)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.