软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
Modifier and Type | Method and Description |
---|---|
static LayoutStyle.ComponentPlacement |
LayoutStyle.ComponentPlacement.valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static LayoutStyle.ComponentPlacement[] |
LayoutStyle.ComponentPlacement.values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
Modifier and Type | Method and Description |
---|---|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type)
添加一个表示两个组件之间的首选项的元素。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addPreferredGap(JComponent comp1, JComponent comp2, LayoutStyle.ComponentPlacement type, int pref, int max)
添加一个表示两个组件之间的首选项的元素。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addPreferredGap(LayoutStyle.ComponentPlacement type)
添加一个表示最近组件之间的首选项的元素。
|
GroupLayout.SequentialGroup |
GroupLayout.SequentialGroup.addPreferredGap(LayoutStyle.ComponentPlacement type, int pref, int max)
添加一个表示最近组件之间的首选项的元素。
|
abstract int |
LayoutStyle.getPreferredGap(JComponent component1, JComponent component2, LayoutStyle.ComponentPlacement type, int position, Container parent)
返回两个组件之间的空间的使用量。
|
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.