Displaying The Image Object On The Java Applet

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:



"Output of DisplayImageInApplet.class"




Download Complete Program

  -     -   HTML File   -   Image





No comments:

Post a Comment