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:
“Is a civilization naturally backward because it is different? Outside of cannibalism, which can be matched in this country, at least, by lynching, there is no vice and no degradation in native African customs which can begin to touch the horrors thrust upon them by white masters. Drunkenness, terrible diseases, immorality, all these things have been gifts of European civilization.”
—W.E.B. (William Edward Burghardt)
“Talk to them about things they dont know. Try to give them an inferiority complex. If the actress is beautiful, screw her. If she isnt, present her with a valuable painting she will not understand. If they insist on being boring, kick their asses or twist their noses. And thats about all there is to it.”
—John Huston (19061987)