对话框的学习showConfirmDialog
2009-12-11 16:31
239 查看
public static int showConfirmDialog(Component parentComponent, String message[], String title, int optionType, int messageType)
{
Window win = getWindowForComponent(parentComponent);
MsgOptionPane msgPane = null;
if(win instanceof Dialog)
msgPane = new MsgOptionPane((Dialog)win, message, title, optionType, messageType);
else
msgPane = new MsgOptionPane((Frame)win, message, title, optionType, messageType);
msgPane.show();
int value = msgPane.getOptionValue();
msgPane.release();
msgPane = null;
return value;
}
{
Window win = getWindowForComponent(parentComponent);
MsgOptionPane msgPane = null;
if(win instanceof Dialog)
msgPane = new MsgOptionPane((Dialog)win, message, title, optionType, messageType);
else
msgPane = new MsgOptionPane((Frame)win, message, title, optionType, messageType);
msgPane.show();
int value = msgPane.getOptionValue();
msgPane.release();
msgPane = null;
return value;
}
相关文章推荐
- 关于java JFrame窗口关闭弹出showConfirmDialog 对话框关闭而主窗口不关闭
- java小程序之(GUI)确认对话框JOptionPane.showConfirmDialog
- 如何为JOPtionPane的showConfirmDialog对话框中的按钮设置监听
- 如何JOPtionPane的showConfirmDialog对话框button设置监视器
- 对话框创建新方式showDialog和DialogFragment
- 黑马程序员之ASP.NET学习笔记:showModalDialog和showModelessDialog数据传递技巧
- matlab学习------------普通dialog对话框,错误对话框errordlg,警告对话框warndlg
- Android UI学习 - 对话框 (AlertDialog & ProgressDialog)
- Qt里面登录对话框Dialog的show()和exec()
- IE对话框showModalDIalog(模态)和showModelessDialog
- Android UI学习 - 对话框 (AlertDialog & ProgressDialog)
- ckfinder.net完全讲解七(ckfinder对话框,openmsgDialog,openconfirmdialog)
- Swing中弹出对话框的几种方式_JOptionPane.showMessageDialog等详解
- 通用对话框学习二:FolderBrowserDialog
- 开发对话框Dialog的学习资料和dialog选中位置的问题
- idea svn update 时不弹出选择分支的对话框,don't show this dialog in the furture解决方案
- 学习YUI.Ext 第四天--对话框Dialog的使用
- Android UI学习 - 对话框 (AlertDialog & ProgressDialog)
- Android基础控件之-----------对话框Dialog(学习笔记)
- 在Windows7 64位和VS2008环境下,PrintDialog.ShowDialog不能显示打印对话框