javax.swing.plaf.UIResource
public final class PopupMenuLayout
extends javax.swing.BoxLayout
implements javax.swing.plaf.UIResource
maxTextWidth
and maxAccWidth
in
the method invalidateLayout(Container)
and not in the method
BoxLayout.preferredLayoutSize(Container)
.Constructor | Description |
---|---|
PopupMenuLayout(java.awt.Container target,
int axis) |
Creates a layout manager that will lay out components along
the given axis.
|
Modifier and Type | Method | Description |
---|---|---|
void |
invalidateLayout(java.awt.Container target) |
Indicates that a child has changed its layout related information,
and thus any cached calculations should be flushed.
|
public PopupMenuLayout(java.awt.Container target, int axis)
target
- the container that needs to be laid outaxis
- the axis to lay out components alongpublic void invalidateLayout(java.awt.Container target)
In case the target is an instance of JPopupMenu it flushes the values of
the client properties maxTextWidth
and maxAccWidth
.
invalidateLayout
in class javax.swing.BoxLayout
target
- the affected containerCopyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.