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

您没有登录

» Java开发网 » Java SE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 怎样去掉运行程序时的DOS窗口啊?
海魂



发贴: 0
积分: 0
于 2003-06-01 22:07 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
编写 JApplet (JFrame)程序,会有可视化界面弹出。
但是在弹出界面之前会有一个Dos 窗口,运行完关掉生成的可视化界面后,还要关掉
Dos窗口。

怎样设计可以不弹出Dos窗口?




作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
dliang



发贴: 0
积分: 0
于 2003-06-01 22:12 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
试试用 javaw 运行.class文件


作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
bbbaby





发贴: 362
积分: 20
于 2003-06-02 17:41 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
对啊~~用javaw就应该不会有上述情况了


作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
海魂



发贴: 0
积分: 0
于 2003-06-03 16: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
我这样操作:
javaw menu.class

结果显示: Could not find the main class . Program will exit!
这是怎么回事啊? 是不是 javaw要写参数的?

还有,怎么一个 menu$1.class 文件生成? 这是什么东西啊?




作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
rego





发贴: 26
积分: 10
于 2003-06-03 21:45 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
海魂 wrote:
还有,怎么一个 menu$1.class 文件生成? 这是什么东西啊?

你的menu1中应该用到了一个Anonymous Class.
例如在事件处理过程中:
component.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent evt) {
}
});



作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
y123456



发贴: 0
积分: 0
于 2003-06-04 11:08 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
用javaw运行软件包,不会有控制台出现


作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
海魂



发贴: 0
积分: 0
于 2003-06-04 21:36 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
我这样操作:
javaw menu.class

结果显示: Could not find the main class . Program will exit!
这是怎么回事啊? 是不是 javaw要写参数的?




作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
frankwg

HikaruGo



发贴: 51
积分: 40
于 2003-06-06 17:16 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
beware of you main class' path. if it resides in the specific package.
and try the following instruction instead:

>javaw menu



作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
laser



发贴: 0
积分: 0
于 2003-06-08 16:56 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
玩java这么久了,真还没有注意过javaw。
好帖子,顶一下。



作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
mindyleelyy



发贴: 0
积分: 0
于 2003-06-09 13:47 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
直接用jdk就可以,他可是根本哦!


作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
pjfRealmap



发贴: 0
积分: 0
于 2003-06-09 13:54 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
up


作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:mindyleelyy]
greennba99



发贴: 0
积分: 0
于 2003-06-11 18:23 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
mindyleelyy wrote:
直接用jdk就可以,他可是根本哦!


能不能说得具体一点,谢谢!



作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
gus



发贴: 0
积分: 0
于 2003-06-17 03:17 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
我也想知道


作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:海魂]
jameszhang



CJSDN高级会员


发贴: 1594
积分: 111
于 2003-06-17 08:19 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
怎么这么乱?大家到底在讨论什么?
http://www.cjsdn.com/post/view?bid=1&id=21749&sty=3&tpg=16&age=0


jameszhang edited on 2003-06-17 08:23

"First they ignore u, then they laugh at u, then they fight u, then u will win

Mahatma Gandhi"

作者 Re:怎样去掉运行程序时的DOS窗口啊? [Re:bbbaby]
ditty

负资产小资

CJSDN高级会员


发贴: 1038
积分: 143
于 2003-06-17 08:46 user profilesend a private message to usersend email to dittysearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
bbbaby wrote:
对啊~~用javaw就应该不会有上述情况了

应该是这样:
写一个cmd or bat脚本,
start javaw com.packXXX.YourFrame



内忧外患的时代,洗心革面,阿咪豆腐~

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