Thanks everyone first, that mean If I want to override the original
swing-drawing-engine, I need to write all the stub in C++. So far I
know, the AWT engine's paint() method call C function to paint
everything.
I think the short version of Swing is that:
- Java Swing code translates from text, lines etc. to pixels
- native AWT code renders the pixels
So if you for some reason want to write some code that
renders the pixels differently then you need to write C
code.
But if you want to change the way things look, then you
can change in the Java code.
Note that Swing comes with a pluggable Look & Feel model
that allows you to change things in a very nice way without
cloning standard Swing code.
Arne