• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with work... Listeners and such

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need some help with an assignment that I got set. It goes...


Using the animax package being studied in the, Object-Orientated Programming (CO207) module, design a SecondsTimer class that when instantiated produces a minutes and seconds display at any specified position on the screen and that automatically updates every second. Use two coupled counters that count from 0 to 59, each attached to a number graphic. Your system should include an internal player with a delay of 1000 milliseconds and the constructor of the system should start the player by sending it a play() message. Test your design by instantiating a number of SecondsTimers at different positions on the screen.


Any help or ideas would be great.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, welcome to the ranch! We can help best here when you show us code that almost works, even for the tiniest part of the problem. Right now we can't tell if you're stuck on compiling classes, using Swing, making timers, or something else.

If you haven't started yet, forget the GUI and think about the smallest bit of the program that would be interesting to see working. Maybe show us what you think "two coupled counters" means, starting with one counter.
reply
    Bookmark Topic Watch Topic
  • New Topic