Java Glossary : Label

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : L words : Label.

Label
java.awt.Label is a component used to display decorative text on the screen to label some other component. The user cannot ever modify the text, unlike Textfields. In AWT you use Label, in Swing JLabel. Layout managers shift Labels about just like other components. In contrast text refers to the text inside a component. End users don't typically modify labels. For data entry use TextFields or text boxes. Note that you do not need repaint after a setText on a Label. Putting \n in the label text won't give you a multiline label. You must use a javax.swing.JLabel. You feed it HTML containing a <br>. Similarly if you want to decorate your labels with images, you must use JLabel.

documentation on Label : available:


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1112.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/label.html J:\mindprod\jgloss\label.html