JLabel

Palette category
Swing
Palette bean
JLabel
Project
JFC class libraries
Package
com.sun.java.swing
Type
JLabel

Use a JLabel bean to provide a text label for your user interface. You can add a graphic to the label as well as text. You can also define a mnemonic in the label as a means of quick access to a text input field.

Use a Label bean, rather than a JLabel bean, if you want to use it in an AWT container. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Text Component

Related references
Text Beans
Beans for Visual Composition