java 弹出窗口编程
2013-04-14 21:59
344 查看
//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);
相关文章推荐
- JAVA 弹出窗口系列之 一
- Java开发GUI之Dialog弹出窗口
- 最近在编程过程中偶尔会遇到这个错误, 非常烦人, 因为一旦添加事件处理函数就会弹出这个窗口
- java selenium (十二) 操作弹出窗口
- java script: confirm 弹出窗口按钮文字的改变
- Java 弹出窗口系列之 二
- 3.JAVA之GUI编程Frame窗口
- Java点击按钮弹出窗口(两种按钮)
- 双击Eclipse,弹出一个错误窗口: java.lang.IllegalStateException:
- Java 弹出窗口系列之 三
- 55.java编程思想——创建窗口和程序片 推荐编码方法
- 如何截取浏览器弹出的Java脚本的窗口?
- Java图形界面编程之弹出文件选择框
- 【JAVA技术点】简谈弹出窗口
- 解决Java调用BAT批处理不弹出cmd窗口的方法分析
- java课后作业 弹出窗口求两个数的加减乘除
- Windows下Java调用BAT批处理不弹出cmd窗口
- Android 编程下 PopupWindow 窗口的弹出
- 10.JAVA之GUI编程弹出对话框Dialog
- Windows下Java调用BAT批处理不弹出cmd窗口