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 sacrifice to Legba was completed; the Master of the Crossroads had taken the loas mysterious routes back to his native Guinea.
Meanwhile, the feast continued. The peasants were forgetting their misery: dance and alcohol numbed them, carrying away their shipwrecked conscience in the unreal and shady regions where the savage madness of the African gods lay waiting.”
—Jacques Roumain (19071945)
“When van Gogh paints sunflowers, he reveals, or achieves, the vivid relation between himself, as man, and the sunflower, as sunflower, at that quick moment of time. His painting does not represent the sunflower itself. We shall never know what the sunflower itself is. And the camera will visualize the sunflower far more perfectly than van Gogh can.”
—D.H. (David Herbert)