To examine and work with these examples, download the compressed NetBeans project folder (rar'ed), extract it under your NetBeans projects folder (typically "My Documents/NetBeansProjects") next to your other projects, then "Open Project..." from NetBeans IDE.

Some simple programs below in this box. Mostly written as examples in class sessions.

A simple applet used twice in a web page.
A check box controls if the combo box can function.
Also an example of passing a parameter to the Applet from HTML code of the web page.
Look at the Html code of the page for how to write Applet Html Tag.
NetBeans project folder (.rar) of this program.

A simple calculator with two input fields, one output field and four buttons for four operations.
The point of interest is this: the event handler of all four buttons is same
(calling a method named islem).
In method islem: How to getSource or getActionCommand of an ActionEvent.

NetBeans project folder (.rar) of this program.


Try entering non-integer values like 2.5 or abc into text field.

NetBeans project folder (.rar) of this program. (JFrame version)

Much like the above. This time it is done with "InputVerifier"s.
Look for InputVerifier property and custom verifier class in the code.

NetBeans project folder (.rar) of this program. (JApplet version)


Can you press the middle button. (There is a quite simple way :)

NetBeans project folder (.rar) of this program.


Here is a web page for a little game (in Turkish) we discussed in a lecture.
Contains many different stuff like images, timers, custom events, random integers, ArrayLists, etc...

Look at the source of this web page ( Html code of this page) and see how these applets are used.
Intenet Explorer: menu:View->Source or Right-Click->View Source
Chrome: Right-Click->View page source