Results 1 to 4 of 4
  1. #1
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default Need help for Timer

    I want to add Timer in my JFrame is any way to add timer without adding JButton
    If any way is available then tell to me


    Thanks...

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: Need help for Timer

    Timers and JButtons are totally not related nor coupled to eachother. If the Timer runs on its own, without the user starting it, you can start the Timer when the application starts. If the Timer has to start on some condition, start it as soon as the condition rises. You got an example?
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    vknehra10 is offline Senior Member
    Join Date
    Dec 2016
    Posts
    103
    Rep Power
    0

    Default Re: Need help for Timer

    i think timer not start with application runs it need something explicitly like when click on button ...so if u have any example that timer starts without clicking jnutton then write here please

    thanks

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: Need help for Timer

    So the question here is: WHEN does the Timer need to start? Starting a Timer is done the same, whether you do it in a click, a menu item, application start, a completed download, THAT DOES NOT MATTER. Only YOU can answer the question WHEN the timer has to start. And then you find out WHEN, you already know how to start it.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Timer
    By biomechanics in forum Android
    Replies: 0
    Last Post: 06-30-2011, 12:48 AM
  2. Timer And Timer Task
    By Ashish_jain in forum New To Java
    Replies: 3
    Last Post: 06-22-2011, 09:41 AM
  3. Stopping a Timer from Inside the timer
    By krishnan in forum Java Applets
    Replies: 2
    Last Post: 10-04-2010, 11:15 PM
  4. Timer help
    By Kinyo in forum New To Java
    Replies: 15
    Last Post: 03-15-2009, 02:37 AM
  5. Replies: 0
    Last Post: 04-04-2008, 02:46 PM

Tags for this Thread

Posting Permissions

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