Results 1 to 6 of 6

Thread: nonLinearShots

  1. #1
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Post nonLinearShots

    Hi,

    I've been working on a program called nonLinearShots. Does anyone know how to have 15 swing timers going off at different intervals?

    If you would like to see nonLinearShots, please download this zip file, create a new class in eclipse called "nonLinearShots", copy and paste the text from the txt file "nonLinearShots" after extracting the zip file into your "nonLinearShots" java file in eclipse, finally, copy and paste the images in the file to your "src" file in your workspace.

    It's almost like I need a list of timers, for a list of planes that are firing every 3 seconds.
    Last edited by natdizzle; 05-22-2012 at 12:26 AM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: nonLinearShots

    Quote Originally Posted by natdizzle View Post
    Does anyone know how to have 15 swing timers going off at different intervals?[/URL]
    Construct and start() 15 Swing Timers.

    Quote Originally Posted by natdizzle View Post
    If you would like to see nonLinearShots, please download this zip file
    By now you should know that many members won't click licks, and that for some who might, many or most hosting sites are blocked by a corporate firewall.

    To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Re: nonLinearShots

    I was trying to give anyone who wants it a java 2D example, the full source and images.

  4. #4
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Re: nonLinearShots

    And all those swing timers are going to go off in one actionPerformed?

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: nonLinearShots

    That's for you to decide.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    105
    Rep Power
    0

    Default Re: nonLinearShots

    i sovlved this problem 8 months ago by creating a class within a class, if you want an example i also wrote a page about it at class within a class,

    i ended up using EventObject (Java Platform SE 6) getsource

Posting Permissions

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