JOptionPane.showConfirmDialog(Component parentComponent, Object message)
showConfirmDialog(Component parentComponent, Object message, String title, int optionType)
showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
………………………………后面自己去看API文档吧