Java™ Web Start ( download JDK 7 or later).
We show the code for creating these borders a little later, in Using the Borders Provided by Swing.Ĭlick the Launch button to run the BorderDemo example using
The following pictures show an application called BorderDemo that displays the borders Swing provides. The rest of this page discusses the following topics: The black line drawn by the border marks the edge of the container. Here's a picture of the container, which contains a label component. tBorder(BorderFactory.createLineBorder(Color.black))