Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: using a stepListener from an the eventlistener class

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default using a stepListener from an the eventlistener class

    hello, i am looking to generate a sequence of dynamicbodies so that they appear at the top of my run screen and fall downwards

    i want to be able to say how many appear in 10 seconds and when to stop the falling.

    i have a class for the body that is an enemy in a game

    i need to use the stepListener.

    how do i do this?

    thankyou.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: using a stepListener from an the eventlistener class

    how do i do this?
    Start by making a detailed design for the program. List all the details the code needs to do. When you have a design, try coding it.

    If you have problems, ask some specific questions about them.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: using a stepListener from an the eventlistener class

    Quote Originally Posted by rhythmjohn View Post
    hello, i am looking to generate a sequence of dynamicbodies so that they appear at the top of my run screen and fall downwards
    i want to be able to say how many appear in 10 seconds and when to stop the falling.
    i have a class for the body that is an enemy in a game
    i need to use the stepListener.
    Please, also clarify the context. Is it related to AWT/Swing GUI? Or other GUI/graphics/game framework? What is stepListener? (it is surely not from AWT/Swing).
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

Similar Threads

  1. Replies: 10
    Last Post: October 20th, 2013, 06:35 AM
  2. Replies: 2
    Last Post: November 18th, 2012, 02:09 PM
  3. need to make basic class and implementation class (base class without void main)
    By javanewbie101 in forum Object Oriented Programming
    Replies: 1
    Last Post: September 19th, 2012, 08:03 PM
  4. create a test class (main method) to start(run) the class in Java
    By curious725 in forum Java Theory & Questions
    Replies: 5
    Last Post: August 1st, 2012, 03:21 AM
  5. Replies: 3
    Last Post: June 17th, 2012, 06:22 PM