public static class MetalBorders.OptionDialogBorder extends javax.swing.border.AbstractBorder implements javax.swing.plaf.UIResource
JInternalFrame components that are
presented as dialogs (by the JOptionPane class).| Constructor and Description |
|---|
MetalBorders.OptionDialogBorder()
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 newInsets)
Returns the border insets.
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Paints the border for the specified component.
|
public MetalBorders.OptionDialogBorder()
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 newInsets)
getBorderInsets in class javax.swing.border.AbstractBorderc - the component (ignored).newInsets - an instance that will be overwritten and returned as the
result (null not permitted).AbstractBorder.getBorderInsets(Component)public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderc - the component.g - the graphics device.x - the x-coordinate.y - the y-coordinate.w - the width.h - the height.