//1.
//JOptionPane.showMessageDialog(null, "在对话框内显示的描述性的文字", "标题条文字串",JOptionPane.ERROR_MESSAGE);
//2.
// Object[] options = {"确定","取消","帮助"};
// int response=JOptionPane.showOptionDialog(null,
// "这是个选项对话框,用户可以选择自己的按钮的个数", "选项对话框标题",JOptionPane.YES_OPTION,
// JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
// if(response==0)
// {
// System.out.println("0");
// }
// else if(response==1)
// {
// System.out.println("1");
// }
// if(response==2)
// {
// System.out.println("2");
// }
//3.
//String inputValue = JOptionPane.showInputDialog("Please input a value");
//System.out.println(inputValue);
//4.
//Object[] possibleValues = { "First", "Second", "Third" }; //用户的选择项目
//Object selectedValue = JOptionPane.showInputDialog(null, "Choose one", "Input",JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);
//System.out.println(selectedValue);
//5.
int a=JOptionPane.showConfirmDialog(null, "choose one", "choose one", JOptionPane.YES_NO_OPTION);
System.out.println(a);