| Java Doc By Examples | |
| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectjavax.swing.border.AbstractBorderjavax.swing.plaf.basic.BasicBorders.MarginBorderMethod Summary | |
Insets |
|
Insets |
|
Methods inherited from class javax.swing.border.AbstractBorder | |
getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder | |
Methods inherited from class java.lang.Object | |
clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait | |
public Insets getBorderInsets(Component c)
This default implementation returns a newInsetsinstance where thetop,left,bottom, andrightfields are set to0.
- Specified by:
- getBorderInsets in interface Border
- Overrides:
- getBorderInsets in interface AbstractBorder
- Parameters:
c- the component for which this border insets value applies
- Returns:
- the new
Insetsobject initialized to 0
public Insets getBorderInsets(Component c, Insets insets)
Reinitializes the insets parameter with this Border's current Insets.
- Overrides:
- getBorderInsets in interface AbstractBorder
- Parameters:
c- the component for which this border insets value appliesinsets- the object to be reinitialized
- Returns:
- the
insetsobject