It works, thanks :) But I don't understand why what I did before didn't work.
You said I needed a reference to the Graphics object of Surface. But I did obtain one inside DrawRect class, in the...
Type: Posts; User: AvivC
It works, thanks :) But I don't understand why what I did before didn't work.
You said I needed a reference to the Graphics object of Surface. But I did obtain one inside DrawRect class, in the...
Hello everyone, now to this forum :)
I'm fairly new to 2D graphics in Java.
I learned how to draw simple shapes on a JPanel, using the paintComponent method.
Now I'm trying to do the same...