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

您没有登录

» Java开发网 » Java SE 综合讨论区 » 安装/配置/编译/环境  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:JAVA找不到符号 [Re:EchizenSyusuke]
xuxiaolei

^_^



发贴: 169
积分: 23
于 2007-03-26 11:34 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
JOptionPane.showMessageDialog(null, "三个数的乘积是: " + result);

下面是JAVA API上面的解释:

public static void showMessageDialog(Component parentComponent,
Object message)
throws HeadlessException
Brings up an information-message dialog titled "Message".

Parameters:
parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
message - the Object to display

如果是null,一个默认的frame将被使用,希望对你有帮助
并没有出错呀,第一个参数JVM允许是null


xuxiaolei edited on 2007-03-26 12:10

http://xuxiaolei.javaeye.com

话题树型展开
人气 标题 作者 字数 发贴时间
26600 JAVA找不到符号 EchizenSyusuke 1230 2007-03-23 17:05
24931 Re:JAVA找不到符号 xuxiaolei 264 2007-03-23 18:03
24278 Re:JAVA找不到符号 EchizenSyusuke 70 2007-03-23 19:01
24749 Re:JAVA找不到符号 xuxiaolei 696 2007-03-24 15:36
24422 Re:JAVA找不到符号 Devil2012 1256 2007-03-25 02:44
24863 Re:JAVA找不到符号 xuxiaolei 230 2007-03-24 15:43
24469 Re:JAVA找不到符号 why 327 2007-03-24 19:28
24147 Re:JAVA找不到符号 Devil2012 10 2007-03-26 01:32
23971 Re:JAVA找不到符号 EchizenSyusuke 158 2007-03-26 09:08
26730 Re:JAVA找不到符号 xuxiaolei 571 2007-03-26 11:34

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