You are create an applet. Using the paint class, you will create a house with 4 windows.
The windows of your house are to open one after another and finally a door.
Secondly, The windows and the door will be controlled by one single scrollbar. There
will also be a button “Reset” this will open all the windows and the door with one press
of the button. You must also reset the scrollbar to have a value of 0.
Thirdly, you are to add a button on the door labeled “Knock”. After you click the button
three times, a picture of something will appear.
Things to note…
You must implement adjustmentListener, actionlistener
Object = new Button(“Kncok”);
Image = getImage(getDocumentBase(),”NameofPic.gif”);
if (e.getsource == Object)
yada yada yada