Search:

Type: Posts; User: jimbagas

Search: Search took 0.59 seconds.

  1. Replies
    9
    Views
    14

    Re: Pong Game won't update

    Thanks so much again for helping with this.
    You were right about the problem. it was the uninitialized objects in the ball class.
    I changed the line "private Player1 p1" to "private Player1 p1 =...
  2. Replies
    9
    Views
    14

    Re: Pong Game won't update

    Thanks a lot for replying to this. Its helped me with learning to analyze code.
    I realized i could get rid of the setVisible() call as it's not needed with applets.
    Ive looked over the code...
  3. Replies
    9
    Views
    14

    Re: Pong Game won't update

    This is the console output when I run the program.

    Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
    at main.MainClass.paint(MainClass.java:105)
    at...
  4. Replies
    9
    Views
    14

    Re: Pong Game won't update

    I dont know if I'm restricted but awt is what i've learned to use. does it make much of a difference?
  5. Replies
    9
    Views
    14

    Pong Game won't update

    I'm a beginner at java and am trying to code a basic pong game java applet.
    The code has no errors in it but when i run it the .png's do not come up in the window until its moved off screen.
    when...
Results 1 to 5 of 5