|
From: D-Man <ds...@ri...> - 2001-07-18 18:35:46
|
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
|