public static class MetalBorders.MenuBarBorder extends javax.swing.border.AbstractBorder implements javax.swing.plaf.UIResource
JMenuBar components.| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.Insets |
borderInsets
The border insets.
|
| Constructor and Description |
|---|
MetalBorders.MenuBarBorder()
Creates a new border instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the border insets.
|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
Populates
insets with the border insets, then returns it. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Paints the border for the component.
|
protected static java.awt.Insets borderInsets
public MetalBorders.MenuBarBorder()
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
JMenu or an armed JMenuItem.paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderc - the component.g - the graphics device.x - the x-coordinate of the border area.y - the y-coordinate of the border area.w - the width of the border area.h - the height of the border area.public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderc - the component (ignored).AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
insets with the border insets, then returns it.getBorderInsets in class javax.swing.border.AbstractBorderc - the component (ignored).insets - the object to populate with the border insets.java.lang.NullPointerException - if insets is null.AbstractBorder.getBorderInsets(Component)