A displayed label object is known as the Label. Most
of the times label is used to demonstrate the significance of the other parts of
the GUI. It helps to display the functioning of the next text field. A label is
also restricted to a single line of text as a button. The example below shows
the significance of Label.
In this example, we have added two labels in the applet as shown.
Here is the output:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: March 13, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles