Introduction

This article describes the procedure to create an Applet using the NetBeans IDE. There are mainly two ways to create an Applet in the NetBeans IDE, they are:

In this article we will be using the GUI Builder to create an Applet siince everyone might be familiar with the traditional method of writing the code and executing it.

Creating Project

The following is the procedure to start a new project:

18.1.jpg

18.2.jpg

Creating JApplet Form

The following is the procedure to create a jApplet Form:

18.3.jpg

18.4.jpg

Now you will be able to see the design view of your applet.

18.5.jpg

And in the project window the packages that are included are also visible now.

18.6.jpg

Adding the perfect compiler Version to the project

This step is very important to be applied; to do it, we need to use the following procedure:

18.7.jpg

Making the GUI Builder to use the correct Libraries

18.8.jpg

Adding Components to Your Applet

Output Screenshots:

18.9.jpg

When we click on the first "Click" button:

18.10.jpg

When we click on the second "Click" button:

18.11.jpg