javax.swing.plaf.basic
public class DefaultMenuLayout extends BoxLayout implements UIResource
Constructor Summary | |
---|---|
DefaultMenuLayout(Container target, int axis)
Creates a new instance of DefaultMenuLayout.
|
Method Summary | |
---|---|
Dimension | preferredLayoutSize(Container target)
Returns the preferred size for the layout of the menu.
|
Parameters: target the component that is laid out axis the axis along which the component is laid out
Parameters: target the Container which's preferred size we calculate