Unable to draw a rectangle
here is the simple test code :-
Code :
import java.awt.Graphics;
import java.awt.geom.*;
public class test
{
Graphics g;
public void blah()
{
g.draw(new Rectangle2D.Double(20, 30, 300, 100));
}
}
error - cannot find symbol- method draw...
Plz Help
Regards
Re: Unable to draw a rectangle
Can you give us a link to the API for the Graphics.draw(Rectangle2D.Double) method?
Re: Unable to draw a rectangle
OK this problem is solved now
i used other method to make the rectangle.
Thnx anyway...
Re: Unable to draw a rectangle
Quote:
Originally Posted by
n00b
OK this problem is solved now
i used other method to make the rectangle.
Thnx anyway...
Thanks anyway? That's exactly what I was trying to get you to see...