This is a Java source code for a simple graphical application that demonstrates how to use various types of borders in Swing, a Java GUI toolkit. The program defines a class BorderDemo
that extends JApplet
, a Swing component used for embedding a Java application in a web page or other container.

Transform your IT and business with The Phoenix Project – the gripping story that redefines how we think about DevOps and innovation!
View on Amazon
In this java code, a method make(Border border, String command)
is defined to create a new JLabel
with the specified Border
object and text label. This method is called multiple time, each time with a different type of border and a label describing the border. The borders are created using the BorderFactory
class, which provides convenient methods for creating various types of borders in Swing.