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, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
public 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 BasicSeparatorUI
g
- The Graphics object to paint withc
- The JComponent to paint.public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class BasicSeparatorUI
c
- The JComponent to measure.