Use the applet below to explore the set of borders already provided by Java Swing.
Java Swing provides a javax.swing.BorderFactory class with 8 set of factory methods to create 6 type of borders, 1 empty border and a set of factory methods to create compound borders.