Strange...

Hi All,

When I want to run my small Java2D program with Eclipse I get the following for the simple sentence :

g2.draw(shape); The Eclipse says:

"The method draw(Shape) in the type Graphics2D is not applicable for the arguments (Shape)"

How come?

Also for this one :

Shape shape = tr.createTransformedShape(e);

I get :

Type mismatch: cannot convert from Shape to Shape

I don't know why but it seems that I don't have Java2D or somthing? I've downloaded the last version of Java...

Thank u in advance

Eyal

[580 byte] By [Eyal2007a] at [2007-11-27 4:35:20]
# 1
Check whether you have another Shape class,see in imports which shape class is imported. Which Jdk version you are using.
khangharotha at 2007-7-12 9:45:22 > top of Java-index,Security,Cryptography...
# 2
Nevermind...re-read. I echo the above.Message was edited by: doubleagent
doubleagenta at 2007-7-12 9:45:22 > top of Java-index,Security,Cryptography...