Java AWT Native Interface - Native Painting

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:

    Yet, Saxham, thou within thy gate
    Art of thyself so delicate,
    So full of native sweets that bless
    Thy roof with inward happiness,
    As neither from nor to thy store
    Winter takes aught, or spring adds more.
    Thomas Carew (1589–1639)

    I have heard that stiff people lose something of their awkwardness under high ceilings, and in spacious halls. I think, sculpture and painting have an effect to teach us manners, and abolish hurry.
    Ralph Waldo Emerson (1803–1882)