I'm trying to learn basic
Java on my own. This program I'm trying to do from my book confuses me - - it's probably a bit over my head at this point - - but I would like to try and work my way through it.
I have some specific questions, but also any help walking me through the code would be greatly appreciated.
line 11: what class does this add(p) function come from?
line 33: what's going on here - - where did the function come from, and what is this parameter?
line 35: what's going on here - - where did the function come from, and what is this parameter?
line 39: what class does this repaint(p) function come from?
line 44: how does this paintComponent method get executed?
line 46: what does this do?