Ok, so you want to call the setText() method whenever ball.intersects(block), right?
Type: Posts; User: aussiemcgr
Ok, so you want to call the setText() method whenever ball.intersects(block), right?
You need to ask the questions:
1) What event happens that should cause the text field to update?
2) Where in my code does the event get handled?
Now, you said that the score is supposed to...
The only proper way to change the value of a JTextField is by calling the setText() method. I believe it has to do with the fact that JTextField are not constantly redrawing themselves, so changing...