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:
Avery sticky labels available in many sizes
and surface coatings. Make sure you get laser labels for laser printers and
ink-jet labels for ink-jet printers.
Mabel.ca will produce a variety of custom labels include
dishwasher/microwave safe name labels, clothing labels, metal bag tags, spice jar
labels, electric cord labels, return address labels, kid safety products. You
have to buy either canned sets of labels such is the spice jars, or multiples of
the same label, like clothing labels. You can’ produce a label one off.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:[216.73.216.139] |
| |
| Feedback |
You are visitor number | |