File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Applet

 
Juan Sifuentes
Greenhorn
Posts: 6
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better suited for the Applet form.
Moving.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic