javax.swing.JOptionPane.showMessageDialog() 方法(转:执着的笨蛋—BlogJava)
2013-05-01 11:15
381 查看
//default title and icon JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.", "Message"); | |
//custom title, warning icon JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.", "Inane warning", JOptionPane.WARNING_MESSAGE); | |
//custom title, error icon JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.", "Inane error", JOptionPane.ERROR_MESSAGE); | |
//custom title, no icon JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.", "A plain message", JOptionPane.PLAIN_MESSAGE); | |
//custom title, custom icon JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.", "Inane custom dialog", JOptionPane.INFORMATION_MESSAGE, icon); |
相关文章推荐
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- Swing 写的客户端程序在java web start 运行,多语言过程中,JOptionPane.showMessageDialog() 按钮多语言问题
- (java)Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- java小程序之(GUI)确认对话框JOptionPane.showConfirmDialog
- Java 项目无法引用javax.swing.JOptionPane JAVA引用JOptionPane类报错 解决方案
- JOptionPane.showMessageDialog(null," ")中的null 含义
- java小程序之(GUI)输入对话框JOptionpane.showInputDialog
- JOptionPane.showMessageDialog的使用
- 弹出警告对话框JOptionPane.showMessageDialog
- Java javax.swing.JOptionPane包