January 31, 2009 at 3:58 AM
Your program is correct but u have problem in running the program. You follow the following steps:
1. Save your file from MyFrame.java.
2. compile it from javac MyFrame.java
3. create a MyFrame.html file
copy the following code and paste there:
<APPLET ALIGN="CENTER" CODE="MyFrame.class" WIDTH="800" HEIGHT="500"></APPLET>
4. type the command: appletviewer Frametest.html on your command prompt.
You will be got definitily your output in a applet viewer.