LayoutManager
, LayoutManager2
, Serializable
, UIResource
public class DefaultMenuLayout extends BoxLayout implements UIResource
Constructor | Description |
---|---|
DefaultMenuLayout(Container target,
int axis) |
Constructs a new instance of
DefaultMenuLayout . |
Modifier and Type | Method | Description |
---|---|---|
Dimension |
preferredLayoutSize(Container target) |
Returns the preferred dimensions for this layout, given the components
in the specified target container.
|
addLayoutComponent, addLayoutComponent, getAxis, getLayoutAlignmentX, getLayoutAlignmentY, getTarget, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, removeLayoutComponent
public DefaultMenuLayout(Container target, int axis)
DefaultMenuLayout
.target
- the container that needs to be laid outaxis
- the axis to lay out components along. Can be one of:
BoxLayout.X_AXIS
,
BoxLayout.Y_AXIS
,
BoxLayout.LINE_AXIS
or
BoxLayout.PAGE_AXIS
public Dimension preferredLayoutSize(Container target)
BoxLayout
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class BoxLayout
target
- the container that needs to be laid outContainer
,
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps