public class DefaultMenuLayout extends BoxLayout implements UIResource
| Constructor and Description |
|---|
DefaultMenuLayout(Container target, int axis) |
| Modifier and Type | Method and Description |
|---|---|
Dimension |
preferredLayoutSize(Container target)
给定指定目标容器中的组件,返回此布局的首选尺寸。
|
addLayoutComponent, addLayoutComponent, getAxis, getLayoutAlignmentX, getLayoutAlignmentY, getTarget, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, removeLayoutComponentpublic DefaultMenuLayout(Container target, int axis)
public Dimension preferredLayoutSize(Container target)
BoxLayout
preferredLayoutSize在界面
LayoutManager
preferredLayoutSize在
BoxLayout
target - 需要布置的容器
Container , BoxLayout.minimumLayoutSize(java.awt.Container) , BoxLayout.maximumLayoutSize(java.awt.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.