hi, i want to use the java2d api (java.awt.geom.*). in java the paintcomponent is writen like this void paintComponent(Graphics g){ g2 = (Graphics2D) g; .. } how do i do this cast in jython? ... def paintComponent(self, graphics): graphics2d = ...???... thanks