Padding is the space inside a component or layout, between its content and its surrounding edges. It differs from a layout gap, which separates neighboring cells.
For the complete API reference, visit https://doc.jdance.org.
The simplest form applies the same amount of internal space to every side. It is useful for labels, panels, and card-like content.
The preview above uses a small amount of space so the behavior is visible even in a narrow documentation panel.
A four-value Padding uses top, right, bottom, left order. Unequal values are helpful when a design requires more horizontal breathing room than vertical space.
Padding adds space within one element; gap controls separation between adjacent children. In a compact card, both may be used together, but they address different concerns.
The same idea can also be expressed as a compact Java snippet without requiring a live preview.
Large padding values consume available width. In a narrow RESULT panel, keep examples modest so their content remains readable.
These examples focus on the day-to-day use of Padding. The full API documentation contains additional options, inherited properties and complete method signatures.
Visit https://doc.jdance.org for the full reference.