Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    16
    Views
    2,101

    Re: Java animation code

    Sorry, I don't write code for OPs.

    Work on the problems one at a time.
    A quick solution for the two methods is to comment them out and do them later.

    That leaves the listener problem. Go back...
  2. Replies
    16
    Views
    2,101

    Re: Java animation code

    See post#4
    Those look like the same errors the code had before
    What did you change?

    Why does the code call the setBackground method? What component's background does it what to change.
    Board...
  3. Replies
    16
    Views
    2,101

    Re: Java animation code

    What does the code in the Board class want to happen when it calls the methods in question?
    Where are those methods defined? How can the code in the Board class get access to the class object that...
  4. Replies
    16
    Views
    2,101

    Re: Java animation code

    You should not use those names for your methods. Sometimes when you want to override an extended class's methods then you must use the same name for your method.
    When you call methods that are...
  5. Replies
    16
    Views
    2,101

    Re: Java animation code

    Read the tutorial in post #4 for how to write an action listener.


    Where are the repaint() and setBackground() methods defined? The compiler can not find their definitions.


    Hint: the class...
  6. Replies
    16
    Views
    2,101

    Re: Java animation code

    Post the code and the full text of the error messages.
  7. Replies
    16
    Views
    2,101

    Re: Java animation code

    The compiler is saying that Board is not an ActionListener.
    Read the API doc for the Timer class to see what data types are required for its constructor.

    See the tutorial on how to write an...
  8. Replies
    16
    Views
    2,101

    Re: Java animation code

    That looks like the syntax for a class's constructor. Is it in a class named: Star?

    For the other errors, make sure the statements are inside of a method.

    The code is not properly formatted...
Results 1 to 8 of 8