Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Modifier and Type | Field and Description |
|---|---|
| protected int | bottom
The bottom inset of the border. |
| protected int | left
The left inset of the border. |
| protected int | right
The right inset of the border. |
| protected int | top
The top inset of the border. |
| Access | Constructor and Description |
|---|---|
| public | EmptyBorder(int
the top inset of the border top, int the left inset of the border left, int the bottom inset of the border bottom, int the right inset of the border right)Creates an empty border with the specified insets. |
| public | EmptyBorder(Insets
the insets of the border borderInsets)Creates an empty border with the specified insets. |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component
the component for which this border insets value applies c, Insets the object to be reinitialized insets)Overrides javax. Reinitialize the insets parameter with this Border's current Insets. |
| public Insets | Returns: anInsets object containing the insets from top, left,
bottom and rightReturns the insets of the border. |
| public boolean | isBorderOpaque()
Overrides javax. Implements javax. Returns whether or not the border is opaque. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. Does no drawing by default. |
| bottom | back to summary |
|---|---|
| protected int bottom The bottom inset of the border. | |
| left | back to summary |
|---|---|
| protected int left The left inset of the border. | |
| right | back to summary |
|---|---|
| protected int right The right inset of the border. | |
| top | back to summary |
|---|---|
| protected int top The top inset of the border. | |
| EmptyBorder | back to summary |
|---|---|
| public EmptyBorder(int top, int left, int bottom, int right) Creates an empty border with the specified insets.
| |
| EmptyBorder | back to summary |
|---|---|
| public EmptyBorder(Insets borderInsets) Creates an empty border with the specified insets.
| |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Reinitialize the insets parameter with this Border's current Insets.
| |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets() Returns the insets of the border.
| |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Overrides javax. Implements javax. Returns whether or not the border is opaque. Returns false by default. | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Does no drawing by default. | |