public static class

BasicBorders.MarginBorder

extends AbstractBorder
implements UIResource
java.lang.Object
   ↳ javax.swing.border.AbstractBorder
     ↳ javax.swing.plaf.basic.BasicBorders.MarginBorder

Summary

Public Constructors
BasicBorders.MarginBorder()
Public Methods
Insets getBorderInsets(Component c, Insets insets)
Reinitializes the insets parameter with this Border's current Insets.
Insets getBorderInsets(Component c)
This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.
[Expand]
Inherited Methods
From class javax.swing.border.AbstractBorder
From class java.lang.Object
From interface javax.swing.border.Border

Public Constructors

public BasicBorders.MarginBorder ()

Public Methods

public Insets getBorderInsets (Component c, Insets insets)

Reinitializes the insets parameter with this Border's current Insets.

Parameters
c the component for which this border insets value applies
insets the object to be reinitialized
Returns
  • the insets object

public Insets getBorderInsets (Component c)

This default implementation returns a new Insets instance where the top, left, bottom, and right fields are set to 0.

Parameters
c the component for which this border insets value applies
Returns
  • the new Insets object initialized to 0