Content deleted Content added
m Removed non-content empty section(s), performed general fixes |
m Basic copyedit changes for punctuation consistency. |
||
Line 17:
=== Create a C++ header file ===
Create the [[C++]] [[header file]] as usual. (See [[Java Native Interface]] for more complete explanations.)
=== Implement the C++ native code ===
Line 25:
One should run the file as usual. One should then see a window with, for example, a rectangle drawn in it. (See [[Java Native Interface]] for complete instructions.)
Note: One can notice that the AWT Native Interface requires the "jawt.dll" (or "jawt.so") to run with the application, so the easiest way to do that is copying the "jawt.dll". (should be in the .../jre/bin [[file path]] of the JDK's installation path.){{citation needed|date=June 2012}}
== Native painting ==
|