What is JLabel Classes ?

JLabel is a display area for a short text string or an image or both .A label does not react to input events.

The class JLabel can display either text, an image, or both. Label’s contents are aligned by setting the vertical and horizontal alignment in its display area. By default, labels are vertically centered in their display area. Text-only labels are leading edge aligned, by default; image-only labels are horizontally centered, by default.

As a result it can not get keyword focus.


Leave a Reply

Your email address will not be published. Required fields are marked *