Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Applet

 
Juan Sifuentes
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to make a Java Applet Calculator. What is an applet? Do I write a normal java program and turn it into a java applet or something? or Is a applet a diffirent way to program java?
 
Aum Tao
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An Applet is different from a regular Java program in the sense that it runs inside the browser and can be downloaded and run.

http://java.sun.com/docs/books/tutorial/deployment/applet/
[ December 09, 2008: Message edited by: Prateek Parekh ]
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java Applets are basically mini applications (although they can be pretty robust) that are designed to run inside a web browser. While a regular Java Application can be ported to an Applet, it is better to write it as an Applet from the start if you know that's you want it to be. This is because all Applets must extend the Applet class. You can also extend JApplet which itself extends an Applet.

I'd recommend you start with the Applet lesson in the Java Tutorial to learn the basics of how to write an Applet.
 
Maneesh Godbole
Saloon Keeper
Posts: 11092
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better suited for the Applet form.
Moving.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic