In applets, we can display numerical values by first converting them into strings and then using the drawstring() method of Graphics class we can do this easily by calling the valueOf() Method of String class. Let us consider an example:
This applet runs using the following HTML file:
After this you can comiple your java applet program as shown below:
| ||
|
Download Complete Program
No comments:
Post a Comment