In this article we will look at some of the swing controls available in javax.swing package along with sample Java code for each control. Labels The JLabel class is used to display a label i.e., static text. A JLabel object can be created using any one of the following constructors: JLabel(Icon icon) […]