javax.swing.JOptionPane.showMessageDialog() 方法
2009-05-15 16:21
471 查看
//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);
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() 方法(转:执着的笨蛋—BlogJava)
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- javax.swing.JOptionPane.showMessageDialog() 方法
- (java)Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog
- Swing 写的客户端程序在java web start 运行,多语言过程中,JOptionPane.showMessageDialog() 按钮多语言问题
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- JOptionPane.showMessageDialog的使用
- 弹出警告对话框JOptionPane.showMessageDialog
- JOptionPane.showMessageDialog(null," ")中的null 含义
- 如何JOPtionPane的showConfirmDialog对话框button设置监视器
- java小程序之(GUI)确认对话框JOptionPane.showConfirmDialog
- java小程序之(GUI)输入对话框JOptionpane.showInputDialog
- Java javax.swing.JOptionPane包