HackToHell. Powered by Blogger.

Creating and Running an Applet

I have posted applets before and as many of hem do not know how to run them, here is how it must be done.

First compile the applet.Let us take a look at the source.

http://www.gowtham1.co.cc/2010_06_01_archive.html

copy it to notepad and save the file as banner.java in the bin directory of ur jdk

now compile it as javac banner.java

now after compilation,open notepad and copy the following code

<applet code="banner" width = 300 height = 50>
</applet>

 

now save it as banner.html

Note:While saving it , it must be done to the bin directory and banner.html must also be in the bin directory.

now open banner.html and it will work!!!

Share on Google Plus

About hacktohell

Love technology.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment