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:

    Hope and the future for me are not in lawns and cultivated fields, not in towns and cities, but in the impervious and quaking swamps.... I derive more of my subsistence from the swamps which surround my native town than from the cultivated gardens in the village.
    Henry David Thoreau (1817–1862)

    No painting is more replete than Mondrian’s.
    Samuel Beckett (1906–1989)