软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
Modifier and Type | Field and Description |
---|---|
protected GridBagConstraints |
GridBagLayout.defaultConstraints
本字段包含一个gridbag约束的实例包含默认值,所以如果一个组件没有gridbag约束关联的话,那么组件将被分配一个副本的
defaultConstraints 。
|
Modifier and Type | Field and Description |
---|---|
protected Hashtable<Component,GridBagConstraints> |
GridBagLayout.comptable
哈希表维护组件及其gridbag约束之间的关系。
|
Modifier and Type | Method and Description |
---|---|
GridBagConstraints |
GridBagLayout.getConstraints(Component comp)
获取指定组件的约束条件。
|
protected GridBagConstraints |
GridBagLayout.lookupConstraints(Component comp)
检索指定组件的约束。
|
Modifier and Type | Method and Description |
---|---|
protected void |
GridBagLayout.adjustForGravity(GridBagConstraints constraints, Rectangle r)
调整X,Y,宽度,和高度场的正确值取决于约束几何和垫。
|
protected void |
GridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r)
这种方法已经过时了,仅用于向后兼容提供新的代码应该叫
adjustForGravity 代替。
|
void |
GridBagLayout.setConstraints(Component comp, GridBagConstraints constraints)
在该布局中设置指定组件的约束条件。
|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicOptionPaneUI.addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated)
创建代表
msg 放进
container 合适的对象。
|
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.