[849] in java-interest
Subclassing awt.Graphics
daemon@ATHENA.MIT.EDU (Fumihiko \"Miko\" Matsumura)
Fri Aug 11 02:45:40 1995
Date: Thu, 10 Aug 1995 16:42:14 -0700 (PDT)
From: "Fumihiko \"Miko\" Matsumura" <miko@well.com>
To: java-interest@java.Eng.Sun.COM
In-Reply-To: <9508101613.AA26680@gladys.Eng.Sun.COM>
Hi, I'm trying to extend the awt.Graphics class to include a few new
methods including circle drawing. I'm just getting started and I'm not
sure why the code fragement shown below doesnt work...
import awt.*;
public class MikoGraphics extends Graphics
{
protected MikoGraphics() {
/* null constructor */
}
public void fillCircle (int center, int radius)
{
System.out.println("Yep, it gets here all right!");
}
}
My understanding is that this new class should simply be identical to
Graphics except for the new fillCircle method.
Any ideas why this doesnt work?
Miko
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com