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 simple calculator with two input fields, one output field and four buttons for four operations. 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. 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 |
![]() |