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:

    The remnant of Indians thereabout—all but exterminated in their recent and final war with regular white troops, a war waged by the Red Men for their native soil and natural rights—had been coerced into the occupancy of wilds not far beyond the Mississippi.
    Herman Melville (1819–1891)

    The peculiarity of sculpture is that it creates a three-dimensional object in space. Painting may strive to give on a two-dimensional plane, the illusion of space, but it is space itself as a perceived quantity that becomes the peculiar concern of the sculptor. We may say that for the painter space is a luxury; for the sculptor it is a necessity.
    Sir Herbert Read (1893–1968)