The class component is extended by all the AWT components. More of the codes can be put to this class to design lot of AWT components. Most of the AWT components shown below directly extend Component like Button, Canvas, Label etc.
As shown in the example below, a button is represented by a single label. That is the label shown in the example can be pushed with a click of a mouse.
Here is the HTML code:
<APPLET ALIGN="CENTER" CODE="MyButton" WIDTH="400" HEIGHT="200"></APPLET>
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