This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
It's not me...
Posted by Kishori Sharan on November 08, 2000 at 12:07 AM
Here is the class hierarchy for Graphics class. So when you call getGraphics ( ) on a component then it returns you an instance of class WGraphics which uses a lot of native methods. Note the presence of sun.java2d and sun.awt.windows packages.
public abstract java.awt.Graphics
public abstract java.awt.Graphics2D
public abstract sun.java2d.SunGraphics2D
public sun.awt.windows.WGraphics extends SunGraphics2D implements PixelDrawPipe, PixelFillPipe, TranslateablePipe, SimpleRenderPipe, TextPipe, DeviceClipping
- me either lucas November 08, 2000 at 1:50 AM