Results 1 to 2 of 2

Thread: Desktop Clock

  1. #1
    olamide is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default Desktop Clock

    Could anyone please help, I'm trying to develop an Application with the following:

    1. Create a GUI that has three buttons, namely: Start, Stop and Exit.
    2. The user is permitted to enter the number of philosophers.
    3. When the Start is clicked, the application begins by displaying the state of all
    philosophers. A philosopher can be in three states – Thinking, Hungry and Eating.
    4. Philosophers can stay Thinking or Eating for randomly selected periods between 2 and
    5 seconds.
    5. The state of all philosophers is displayed every 50 milliseconds.
    6. When the Stop button is pressed all philosophers sleep.
    7. When the Exit button is pressed the application closes.
    8. A sample of the display is shown below:

    Philosopher 1 is thinking… (2 seconds)
    Philosopher 2 is eating…
    Philosopher 3 is hungry… (1 second)
    Philosopher 4 is eating…

    1. Develop the Monitor class.
    2. Develop the Philosopher class
    3. Develop other classes as necessary.

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    Sounds like homework. We can't do that for you. If you have a specific question, usually based on some code you include, we will help...

Similar Threads

  1. Need help with Java clock
    By adz666 in forum New To Java
    Replies: 1
    Last Post: 10-15-2008, 03:18 AM
  2. Break Clock
    By BruenorBH in forum Advanced Java
    Replies: 20
    Last Post: 09-12-2008, 06:27 AM
  3. Help please in digital clock
    By jaidod in forum Java Applets
    Replies: 1
    Last Post: 04-17-2008, 05:05 PM
  4. clock class program
    By jvasilj1 in forum New To Java
    Replies: 12
    Last Post: 02-01-2008, 09:27 PM
  5. Pogo clock problem
    By tampacurt in forum New To Java
    Replies: 0
    Last Post: 11-17-2007, 03:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts