public class DefaultMenuLayout extends javax.swing.BoxLayout implements javax.swing.plaf.UIResource
BoxLayout.| Constructor and Description |
|---|
DefaultMenuLayout(java.awt.Container target,
int axis)
Creates a new instance of DefaultMenuLayout.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred size for the layout of the menu.
|
public DefaultMenuLayout(java.awt.Container target, int axis)
target - the component that is laid outaxis - the axis along which the component is laid outpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize in interface java.awt.LayoutManagerpreferredLayoutSize in class javax.swing.BoxLayouttarget - the Container which's preferred size we calculateLayoutManager.minimumLayoutSize(Container)