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, removeLayoutComponent
public 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)