Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java IDE  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:请教如何在Jcreator中运行Applet [Re:spanxzw]
samx





发贴: 185
积分: 52
于 2003-02-28 17:52 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
或者添加main()到你的类中:
public static void main(String args[]){
Applet anInstance=new yourJAppletClass();
JFrame frame=new JFrame("Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(anInstance); //Add your JApplet class into JFrame
frame.setSize(300,150);//you can set any size as you want
anInstance.init();//your instance initiated
anInstance.start();//start your applet
frame.setVisible(true);//this line should be later than calling init() and start(), or you can't see what you want.
}




话题树型展开
人气 标题 作者 字数 发贴时间
6267 请教如何在Jcreator中运行Applet spanxzw 140 2003-02-28 10:50
5265 Re:请教如何在Jcreator中运行Applet scottding 26 2003-02-28 12:38
5263 Re:请教如何在Jcreator中运行Applet samx 552 2003-02-28 17:52
4576 Re:请教如何在Jcreator中运行Applet itfirst 5 2003-02-28 19:31
4807 Re:请教如何在Jcreator中运行Applet spanxzw 12 2003-03-01 11:18

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923