Skip to content
Advertisement

Tag: rendering

paintComponent() not being called

Here is a little program that should (in theory) draw an image of a ball on screen. The problem is that paintComponent seems to not get called. The program consists of two classes. As you can see, I tested if paintComponent was called using a console message. Sadly this was not the case. Can someone explain? Answer It’s no wonder

Advertisement