public interface PaddingSupport
It might have different implementation depending on the component.
For example for JButton it is a spacing between its decoration border and its content.
For JTabbedPane it is a spacing between tab content area borders and content inside.
Padding might be supported through either custom borders in WebLaF-decorated components or component layout. Be aware that if you specify your own border into those components this option might have no effect.
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Insets |
EMPTY
Empty padding.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getPadding()
Returns current padding.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
java.awt.Insets getPadding()
void setPadding(java.awt.Insets padding)
null can be provided to set an empty [0,0,0,0] padding.padding - new padding