java rookie, read java Core Technology introduction Graphics2D class is a subclass of Graphics, in which there is a code
public void paintComponent (Graphics g) {
Graphics2D g2 = (Graphics2D) g
......
}
will there be no error in the downward transition here?