java applet... i'm in a fix, plz help

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: java applet... i'm in a fix, plz help

Hybrid View

  1. #1
    Join Date
    May 2005

    java applet... i'm in a fix, plz help

    H i,

    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:

    Radius Colour
    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.

    Please help...

    Here's my email:

    Hoping impatiently for a solution...thanks.


  2. #2
    Join Date
    Nov 2004

    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.
    Attached Files Attached Files
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center