您的位置:首页 > 其它

对话框的学习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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: