Our Feeds

Friday 12 October 2012

AJITH KP

Java Applet : Your First Program

Java Applet is an web applications programming language. It is very easy to study and also easy to program. Here I would like to create a simple Java Applet which have black background and green text color. You need to save this as FirstApplet.java  

Code: 

 Compile this to bytecode using command "javac FirstApplet.java". After success full compilation yo will get a class file named FirstApplet.class

Next you need to create a HTML page for run this applet

Code: 



Save the above code as any name as you wish. But it must have an extension of HTML.

Now open this html page in your favorite  browser