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 grief of the keen is no personal complaint for the death of one woman over eighty years, but seems to contain the whole passionate rage that lurks somewhere in every native of the island. In this cry of pain the inner consciousness of the people seems to lay itself bare for an instant, and to reveal the mood of beings who feel their isolation in the face of a universe that wars on them with winds and seas.
    —J.M. (John Millington)

    A society person who is enthusiastic about modern painting or Truman Capote is already half a traitor to his class. It is middle-class people who, quite mistakenly, imagine that a lively pursuit of the latest in reading and painting will advance their status in the world.
    Mary McCarthy (1912–1989)