Java: Need help with while(true) in canvas of game
Go to solution
Solved by fizzlesticks,
run:Entering drawFrame();actionPerformed();actionPerformed();actionPerformed();actionPerformed();I now edited the obj declarations to public so I can access them everywhere.
And I did what you said, here the newest Version so far: http://pastebin.com/yU7850tM
However, as you can see above, he doesn't access the paintComponent()...
You got rid of your draw object, you still need one of those. Change the definition of canvas to
JPanel canvas = new drawObjects();
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now