Because Graphics2D is a class that was introduced in Java 2... most browsers only support Java 1.1. You're going to need to either change your program not to use the Java2D API, or make users download the Java2 Plugin from Sun to run your applet.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.