Why .paintComponent() is defined on JComponent?
问题 Sorry if my question doesn't adjust to the Stackoverflow requirements due to it is theorical but i don't know where else to ask. For the past few weeks i've been trying to understand better how the Swing API works and it's components in order to create my own custom components. I've read tons of tutorials, searched in here, i am neck-deep in Java's swing source code and frankly... my mind is a mess. As far as i understand, the swing components are composed of 3 parts: the model: where the