posts - 4, comments - 0, trackbacks - 0, articles - 0

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


只有注册用户登录后才能发表评论。


网站导航: