1. Home
  2. Computing & Technology
  3. Java

Building Your First Java Applet

By , About.com Guide

1 of 10

Introduction

A Simple Java Applet

Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.

Note: Before you start this tutorial, you must have downloaded and installed the Java SE Development Kit.

Java applets are like Java applications, their creation follows the same three step process of write, compile and run. The difference is, instead of running on your desktop, they run as part of a web page.

The goal in this tutorial is to create a simple Java applet. This can be achieved by following these basic steps:

  1. Write a simple applet in Java
  2. Compile the Java source code
  3. Create a HTML page that references the applet
  4. Open the HTML page in a browser

Explore Java
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Java
  4. Tutorials
  5. Building Your First Java Applet>

©2009 About.com, a part of The New York Times Company.

All rights reserved.