public static enum LayoutStyle.ComponentPlacement extends Enum<LayoutStyle.ComponentPlacement>
ComponentPlacement是可以相对于彼此放置两个组件的可能方式的列举。 
       ComponentPlacement由LayoutStyle方法getPreferredGap 。 
       请参阅LayoutStyle以获取更多信息。 
      | Enum Constant and Description | 
|---|
| INDENT
              正在请求指示缩进组件的距离的枚举值。 
             | 
| RELATED
              指示两个组件的枚举值在视觉上相关,并将放置在同一个父项中。 
             | 
| UNRELATED
              指示两个组件的枚举值在视觉上不相关,并将放置在同一个父项中。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| static LayoutStyle.ComponentPlacement | valueOf(String name)
              以指定的名称返回此类型的枚举常量。 
             | 
| static LayoutStyle.ComponentPlacement[] | values()
              按照它们声明的顺序返回一个包含此枚举类型常量的数组。 
             | 
public static final LayoutStyle.ComponentPlacement RELATED
JLabel提供标签的JTextField通常与JTextField视觉JTextField ; 
           常数RELATED用于此。 
          public static final LayoutStyle.ComponentPlacement UNRELATED
UNRELATED用于此。 
          public static final LayoutStyle.ComponentPlacement INDENT
INDENT型。 
            该值通常仅适用于EAST或WEST 。 
public static LayoutStyle.ComponentPlacement[] values()
  for (LayoutStyle.ComponentPlacement c : LayoutStyle.ComponentPlacement.values())
    System.out.println(c);  
          public static LayoutStyle.ComponentPlacement valueOf(String name)
name - 要返回的枚举常量的名称。 
           IllegalArgumentException - 如果此枚举类型没有指定名称的常量 
           NullPointerException - 如果参数为空 
            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, 2014, Oracle and/or its affiliates. All rights reserved.