admin 管理员组文章数量: 1087139
2024年4月27日发(作者:补码减补码怎么算)
ssageDialog(null, "错误消息!
", "错误",
_MESSAGE);
ssageDialog(null, "信息消息。
",“提示", ATION_MESSAGE);
ssageDialog(null, "警告对话
框!", "警告",
G_MESSAGE);
ssageDialog(null, "没有图标
的提示!", "信息",
_MESSAGE);
Icon icon = new
ImageIcon(getClass().getResource("
"));
ssageDialog(null, "
自定义图片的信息提示!", "信息",
ATION_MESSAGE, icon);
Object[] options = { "是的", "不是", "不确定" };
int n =
tionDialog(this,
"你喜欢看定影吗?", "自定义询问",
_NO_CANCEL_OPTION,
ON_MESSAGE,
null, options, options[2]);
Icon icon = new
ImageIcon(getClass().getResource("
"));
Object[] options = { "是的", "不是", "不确定
" };
int n =
tionDialog(this,
"你喜欢看定影吗?",
"自定义询问",
_NO_CANCEL_OPTION,
icon, options, options[2]);
ON_MESSAGE,
int n = nfirmDialog(this, "
你喜欢蓝色吗?", "询问",
_NO_OPTION);
Object[] options = { "Yes, please", "No way!" };
int n =
"Would you like green eggs and
_NO_OPTION,
options, // the titles of buttons
options[0]); // default button
tionDialog(this,
ham?", "A Silly Question",
ON_MESSAGE, null,
title
Object[] possibilities = { "苹果", "香蕉", "橘
子" };
String s = (String)
putDialog(this,
"你喜欢什么样的水果?:n",
"Customized Dialog",
ON_MESSAGE, null,
possibilities, "ham");
inputValue = String
putDialog("请输入一个值:");
版权声明:本文标题:java JOptionPane.showMessageDialog对话框 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1714162291a667936.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论