From: Mark R. <blo...@ho...> - 2001-07-23 11:50:56
|
thanks alot, got it working now, not sure I am entirely sure how or why but it does ;). It turns out that what I thought was a Graphics object was a Graphics2D object already and I was making work for myself (as you so cunningly percieved) cheers blobby p.s. is it possible to reply from the mailing site webpage, cos have only seen an option to reply to the author? On Wed, Jul 18, 2001 at 05:48:34PM +0000, Mark Robinson wrote: | cheers, I had intended to send it to the list, but I just cocked it all up | ;) | | What I am actually trying to do is in order to gain some familiarity with | jython I am rewriting a java prog I have in a book in jython. In the java | example it was typed exactly as in my first example i.e. | | g2 = (Graphics2D)g Ok, In jython that would be spelled g2 = g | it seems to work in java...guess I will have to keep tinkering to work out | how jython wants to do it If Java didn't give you a ClassCastException then then Jython should work just fine with it. Try adding print g.__class__ to see what class (type) g really is, prior to trying to use a Graphics2D method on it. -D _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |