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;
}
对话框的学习showConfirmDialog
最新推荐文章于 2023-12-30 11:57:02 发布