Java JLabel Class Example

JLABELS

Java Swing Tutorial Explaining the JLabel Component. JLabel, descended from JComponent, is used tocreate text labels.A JLabel object provides text instructions or information on a GUI — display a single line of read-only text, an image or both text and image.We use a Swing JLabel when we need a user interface component that displays a message or an image.JØLabels