随笔 - 154  文章 - 60  trackbacks - 0
<2007年10月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

声明:

该blog是为了收集资料,认识朋友,学习、提高技术,所以本blog的内容除非声明,否则一律为转载!!

感谢那些公开自己技术成果的高人们!!!

支持开源,尊重他人的劳动!!

常用链接

留言簿(3)

随笔分类(148)

随笔档案(143)

收藏夹(2)

其他

学习(技术)

观察思考(非技术)

搜索

  •  

最新评论

阅读排行榜

评论排行榜

Informational dialog with default title and icon
//default title and icon
            JOptionPane.showMessageDialog(frame,
            "Eggs are not supposed to be green.",
            "Message");
            
Informational dialog with custom title, warning icon
//custom title, warning icon
            JOptionPane.showMessageDialog(frame,
            "Eggs are not supposed to be green.",
            "Inane warning",
            JOptionPane.WARNING_MESSAGE);
            
Informational dialog with custom title, error icon
//custom title, error icon
            JOptionPane.showMessageDialog(frame,
            "Eggs are not supposed to be green.",
            "Inane error",
            JOptionPane.ERROR_MESSAGE);
            
Informational dialog with custom title, no icon
//custom title, no icon
            JOptionPane.showMessageDialog(frame,
            "Eggs are not supposed to be green.",
            "A plain message",
            JOptionPane.PLAIN_MESSAGE);
            
Informational dialog with custom title, custom icon
//custom title, custom icon
            JOptionPane.showMessageDialog(frame,
            "Eggs are not supposed to be green.",
            "Inane custom dialog",
            JOptionPane.INFORMATION_MESSAGE,
            icon);
            

 

 

更多:http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

posted on 2007-10-26 14:31 lk 阅读(17386) 评论(3)  编辑  收藏 所属分类: j2se

FeedBack:
# re: javax.swing.JOptionPane.showMessageDialog() 方法  2008-03-17 09:17 gaogao
3Q  回复  更多评论
  
# re: javax.swing.JOptionPane.showMessageDialog() 方法 [未登录] 2011-06-07 20:00 java
不错  回复  更多评论
  
# re: javax.swing.JOptionPane.showMessageDialog() 方法  2014-12-10 00:42 fjfjtu
hdyjrt  回复  更多评论
  

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


网站导航: