public class

DefaultMenuLayout

extends BoxLayout
implements UIResource
java.lang.Object
   ↳ javax.swing.BoxLayout
     ↳ javax.swing.plaf.basic.DefaultMenuLayout

Class Overview

The default layout manager for Popup menus and menubars. This class is an extension of BoxLayout which adds the UIResource tag so that plauggable L&Fs can distinguish it from user-installed layout managers on menus.

Summary

[Expand]
Inherited Constants
From class javax.swing.BoxLayout
Public Constructors
DefaultMenuLayout(Container target, int axis)
Public Methods
Dimension preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout, given the components in the specified target container.
[Expand]
Inherited Methods
From class javax.swing.BoxLayout
From class java.lang.Object
From interface java.awt.LayoutManager
From interface java.awt.LayoutManager2

Public Constructors

public DefaultMenuLayout (Container target, int axis)

Public Methods

public Dimension preferredLayoutSize (Container target)

Returns the preferred dimensions for this layout, given the components in the specified target container.

Parameters
target the container that needs to be laid out
Returns
  • the dimensions >= 0 && <= Integer.MAX_VALUE