Native Painting
One can paint as if it is a native application. In Windows, the JVM will pass a HWND and other window information to the native application so that the application will "know" where to draw. It could use GDI to draw a Rectangle. The window information the native side needs will be in a JAWT_Win32DrawingSurfaceInfo structure (depending on Operating System) which can be retrieved with this line: dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
Read more about this topic: Java AWT Native Interface
Famous quotes containing the words native and/or painting:
“The accent of a mans native country remains in his mind and his heart, as it does in his speech.”
—François, Duc De La Rochefoucauld (16131680)
“Painting gives the object itself; poetry what it implies. Painting embodies what a thing contains in itself; poetry suggests what exists out of it, in any manner connected with it.”
—William Hazlitt (17781830)