public class MetalSeparatorUI extends BasicSeparatorUI
JSeparator
component.highlight, shadow
Constructor and Description |
---|
MetalSeparatorUI()
Constructs a new instance of
MetalSeparatorUI . |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent component)
Returns a shared instance of
MetalSeparatorUI . |
void |
paint(Graphics g,
JComponent c)
The separator is made of two lines.
|
getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
public MetalSeparatorUI()
MetalSeparatorUI
.public static ComponentUI createUI(JComponent component)
MetalSeparatorUI
.component
- the component for which we return an UI instanceMetalSeparatorUI
.public void paint(Graphics g, JComponent c)
paint
in class BasicSeparatorUI
g
- The Graphics object to paint withc
- The JComponent to paint.