public class ThinBorder extends AbstractBorder
| Modifier and Type | Field and Description |
|---|---|
static int | LINELine border type. |
static int | LOWEREDLowered bevel type. |
static int | RAISEDRaised bevel type. |
| Constructor and Description |
|---|
ThinBorder(int borderType)Creates a bevel border with the specified type. |
| Modifier and Type | Method and Description |
|---|---|
Insets | getBorderInsets(Component c)Returns the insets of the border. |
Insets | getBorderInsets(Component c, Insets insets)Reinitialize the insets parameter with this Border's current Insets. |
void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)Paints the border for the specified component with the specified position and size. |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaquepublic static final int RAISED
public static final int LOWERED
public static final int LINE
public ThinBorder(int borderType)
borderType - the type of bevel for the border.public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder in interface BorderpaintBorder in class AbstractBorderc - the component for which this border is being paintedg - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted borderpublic Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the component for which this border insets value appliespublic Insets getBorderInsets(Component c, Insets insets)
getBorderInsets in class AbstractBorderc - the component for which this border insets value applies.insets - the object to be reinitialized.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.