java.awt.Label is a component used to display decorative text on the screen to label some other component.
There is a fair bit of ingenuity in ways to make physical labels:
With java.awt.Label The user cannot ever modify the text, unlike TextFields. In AWT (Advanced Windowing Toolkit) you use Label, in Swing JLabel. Layout managers shift Labels about just like other components. End users can’t key into labels. For data entry, use TextFields or TextAreas. 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 a JLabel HTML (Hypertext Markup Language) containing a <br>. Similarly if you want to decorate your label text.
This page is posted |
http://mindprod.com/jgloss/label.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\label.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.133.117.113] |
| |
Feedback |
You are visitor number | |