jython and graphics2d

les abidnego25 at yahoo.com
Fri Dec 13 13:52:23 EST 2002


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



More information about the Python-list mailing list