-
Write a Java applet
Write a Java applet which animates the radio (descibed below), using threads for each of the composed processed.
The radio has an on/off switch which turn the radio on and off respectively.
Tuning is controlled by two buttons scan and reset which operate as
follows. When the radio is turned on or reset is pressed, the radio is tuned to
the top frequency (108 MHz). When scan is pressed, the radio scans towards
the bottom of the band (88 MHz). It stops scanning when it locks on to a
station or it reaches the bottom (event end). If the radio is currently tuned
to a station and the scan button is pressed, then it starts to scan from the
station’s frequency towards the bottom. Similarly, when reset is pressed the
receiver tunes to the top. The scanning proceeds in steps of 1 MHz.
There are also two other buttons, tunefav and setfav, which allow the user
to assign a frequency as her/his favorite. To do so, one scans to the desired
station’s frequency and then presses setfav. If afterwards one presses tunefav then the radio tunes back into the favorite frequency.
When switched on, the radio is set to the top of the frequency range. The
favorite is not forgotten when switching the radio off.
Sorry for the large thread but i really dont know what to write...
-
Here is a good tutorial for applets - Applet Tutorial
Last edited by aniseed; 10-31-2005 at 02:29 AM.
Reason: URL tag added
Happiness is good health and a bad memory.
Similar Threads
-
Replies: 5
Last Post: 05-11-2005, 02:28 AM
-
By nsbscool in forum Java
Replies: 1
Last Post: 05-02-2005, 08:01 AM
-
By crash75uk in forum Java
Replies: 1
Last Post: 04-20-2005, 03:32 PM
-
Replies: 1
Last Post: 04-22-2002, 02:28 PM
-
By Mike Buchanan in forum Java
Replies: 0
Last Post: 04-12-2000, 09:53 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks