• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with work... Listeners and such  RSS feed

 
Matt pizzle
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!