public class BasicPopupMenuSeparatorUI extends BasicSeparatorUI
highlight, shadow| Constructor and Description |
|---|
BasicPopupMenuSeparatorUI()
Creates a new BasicPopupMenuSeparatorUI object.
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c)
Creates a new UI delegate for the given JComponent.
|
Dimension |
getPreferredSize(JComponent c)
This method returns the preferred size of the
JComponent.
|
void |
paint(Graphics g,
JComponent c)
The Popup Menu Separator has two lines.
|
getMaximumSize, getMinimumSize, installDefaults, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updatepublic BasicPopupMenuSeparatorUI()
public static ComponentUI createUI(JComponent c)
c - The JComponent to create a delegate for.public void paint(Graphics g, JComponent c)
paint in class BasicSeparatorUIg - The Graphics object to paint withc - The JComponent to paint.public Dimension getPreferredSize(JComponent c)
getPreferredSize in class BasicSeparatorUIc - The JComponent to measure.