java applet... i'm in a fix, plz help
actually its for my java assignment and my lecturer told us to search the web to find a solution but i'm getting a suitable java code... am in a real fix, plz plz plz help me out...
To keep u on tract here'z z question...
It concerns Class, Inheritance,Thread, Exception handling.
A scrollbar is used to control the growing and shrinking of a circle whose minimum radius is 10. A scrollbar is used to increase or decrease the radius of this circle. A circle goes through its colour changes as it grows or shrinks. The colour of this circle is related to its radius which is shown by the following:
1 to 10 Yellow
11 to 20 Blue
21 to 30 Green
31 to 40 Red
The change of colour by the circle is signalled by an appropriate audio signal.
Develop an appropriate Java Applet to satisfy the specified requirements.
Here's my email: email@example.com
Hoping impatiently for a solution...thanks.
I'm not sure how much this covers...
...of your assignment. I could have done this using a thread extension for
doing all kinds of nifty stuff, but why ?. I like to keep thing simple, so this
example uses classes (...), an animation thread, inheritance (I've extended
both the Panel, Frame and Applet class), and it handles the interrupted
exception for the circle panel "animation"
Note, this is a hybrid, so it can run as an application and an applet.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center