有关JAVA————appletviewer命令 编译JAVA小程序

appletviewer------方法1:先生成一个HTML文件
                                         <applet code="NameClass.class(编译后的CLASS文件)" Width=200Height=200>
                                         </applet>
                                        然后再键入appletviewer NameClass.html运行
                            方法2:把<applet>标记直接以注释的方式放到NameClass.java的文件中
                                          import java.applet.Applet;
                                          import java.awt.*;

                                          /*
                                          <APPLET  code=NameClass.class   width=200  height=300></APPLET>
                                          */

                                           public class applet extends Applet
                                           {
                                                    。。。。。。
                                            }
                                            

                                            在创建完.class文件后,所用的命令为:c:\>appletviewer NameClass.java

你可能感兴趣的:(有关JAVA————appletviewer命令 编译JAVA小程序)