.
- copy and paste the following code into a Notepad++ window
- Save this file as “Draw4Ovals.java”. Upper-case is important. Once it is saved, you’ll see that Notepad++ does syntax highlighting.
- Select the Macros menu, then click on the Java-compile macro near the bottom. The results should look like this: .
- Now select the macro “Java-run”. You should see this:
. - If, in addition, you want to test an applet,
- paste the following code
- save it as “TestApplet.java”
- run “Java-compile”
- run “Java-applet-HTML”
- now either view the file in a browser, or else run “Java-applet-viewer”
- Note: ♦Applets are no longer used as much as other types of web-programming.
♦The Java-applet-HTML script just makes a very simple HTML page. If you want to put an applet in a webpage, you should actually make a decent webpage.
-----
.
Learn powerful non-relational database at:
.
No comments:
Post a Comment