On top of what copeg said, the actual Object used by Swing is almost always a Graphics2D instance, which is an extension of Graphics.