Results 1 to 2 of 2

Thread: help with clock

  1. #1
    Bimz is offline Member
    Join Date
    Aug 2011
    Posts
    31
    Rep Power
    0

    Default help with clock

    im trying to create a clock, ive done all of the psuedocode and am confident that it will work, however i dont know how to make my clock function. eg. i would have an int called second which would go up to 60, but how would i be able to make this integer increase for every second that has gone by?

    help much appreciated,
    Bimz :)

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: help with clock

    Use the Timer class to call an action listener every second to increment the seconds value.

Similar Threads

  1. 24 hour clock to 12 hour clock project.
    By bs3ac in forum New To Java
    Replies: 4
    Last Post: 01-08-2013, 10:10 AM
  2. Clock Troubles
    By brycepower1 in forum New To Java
    Replies: 55
    Last Post: 05-12-2011, 12:33 PM
  3. Analog Clock Help
    By mprentice84 in forum New To Java
    Replies: 13
    Last Post: 06-02-2010, 05:29 PM
  4. clock
    By ws6driver in forum New To Java
    Replies: 1
    Last Post: 07-31-2009, 04:15 AM
  5. java clock
    By bugmenot in forum JCreator
    Replies: 0
    Last Post: 04-07-2009, 10:25 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
  •