> im been triying to draw a
> simple line for the last 3 hours...and my head is really starting to
> hurt...jajajaja any indications?? I triyed overwriting the paint method in a
> class that exteds panel..
> @Override
> public void paint(Graphics2D graphics) {
> // TODO Auto-generated method stub
> System.out.println("canvas controller painted!!!");
> Line2D line = new Line2D.Float(new Point2D.Double(0d, 0d),
> new Point2D.Double(100d, 100d));
> graphics.draw(line);
> super.paint(graphics);
> }
>
> but the bloody method never get called!!!
This should work. Are you sure the method isn't getting called? Perhaps you
should place the call to super.paint() at the beginning of the method?
Otherwise, your line may be painted over by the base class.