How to Make a Java Applet
Download and install JDK., Make a folder for your source codes and projects. , Open NotePad and copy and paste the code in the code section. ,Click file, and then click save as, and save it in your java folder but name the code "test.java" (without...
Step-by-Step Guide
-
Step 1: Download and install JDK.
Check the Sources and Citations for the download link from Sun's website.
Download and install some Java IDE, to make things easier.
Netbeans or Eclipse are good Open Source tools. -
Step 2: Make a folder for your source codes and projects.
,,,,,, "test.htm" (without quotation marks). ,,, Make it a subclass of JPanel, so you can put it into a top level swing container like a JAppletor a JFrame, Override the start() method, get a reference to the contentPane, add your JPanel to it and repack the Applet.
You might need to fine-tune the component allocation on the JPanel, to better fit the applet window. , -
Step 3: Open NotePad and copy and paste the code in the code section.
-
Step 4: Click file
-
Step 5: and then click save as
-
Step 6: and save it in your java folder but name the code "test.java" (without quotation marks)
-
Step 7: Exit the window and click start
-
Step 8: then type in cmd in the box and hit ok.
-
Step 9: Type cd C:\jdk6\bin and hit enter
-
Step 10: Type javac then C:\java\test.java and hit enter.
-
Step 11: Now copy and paste the launcher into NotePad and Click file
-
Step 12: and then click save as
-
Step 13: and save it in your java folder but name the launcher.
-
Step 14: Now go to the java folder you made and launch the test.htm file.
-
Step 15: Open your MAYANK of choice or a simple text editor (like notepad in windows).
-
Step 16: Code a Java program to do something.
-
Step 17: Create a basic JApplet to launch your JPanel program.
-
Step 18: Use the same procedure as for compiling and loading the sample applet to pack your program and run it on the basic launcher.
Detailed Guide
Check the Sources and Citations for the download link from Sun's website.
Download and install some Java IDE, to make things easier.
Netbeans or Eclipse are good Open Source tools.
,,,,,, "test.htm" (without quotation marks). ,,, Make it a subclass of JPanel, so you can put it into a top level swing container like a JAppletor a JFrame, Override the start() method, get a reference to the contentPane, add your JPanel to it and repack the Applet.
You might need to fine-tune the component allocation on the JPanel, to better fit the applet window. ,
About the Author
Ashley Nelson
Writer and educator with a focus on practical practical skills knowledge.
Rate This Guide
How helpful was this guide? Click to rate: