1. graphics fillRect and getColor coderanch.comWelcome to the Ranch! The Graphics object that is passed to the paint methods is an instance of some unknown sub class of Graphics. Usually it's also an instance of an unknown subclass of Graphics2D. That's all you need to know; you can use the methods defined in Graphics (and Graphics2D after casting) without having to worry about how and where ... |
2. graphics fillRect and getColor java-forums.org |