Border defines the visible edge of a JDance component or layout. A border can use different styles, widths, colors, and corner radii.
For the complete API reference, visit https://doc.jdance.org.
A solid border offers a clean separation. Dashed and dotted borders convey a lighter or more provisional boundary, making them useful for examples and placeholders.
The preview above uses a small amount of space so the behavior is visible even in a narrow documentation panel.
A radius softens the shape of a bordered container. Even a small radius can help cards and panels feel visually distinct.
Use borders to separate related groups rather than surrounding every item. They work well with spacing, padding and background colors.
The same idea can also be expressed as a compact Java snippet without requiring a live preview.
Border widths and padding consume space, so choose modest values when building a narrow component preview.
These examples focus on the day-to-day use of Border. The full API documentation contains additional options, inherited properties and complete method signatures.
Visit https://doc.jdance.org for the full reference.