response3 是一个变量呀,这个变量是由int response3=JOptionPane.showOptionDialog( null,"What type of site is it?","Site Type",0, JOptionPane.QUESTION_MESSAGE,null,choices,choices[0]); 来控制的, showOptionDialog这是一个选项对话框 "what type of site is it?"--------显示的信息 Site Type--------title 用choice字符串数组的内容来显示在选项对话框内.Personal-----choice[0]是默认值. response3就是你在选项对话框中选得值.
其实,choices[response3]是数据组的索引项,它是用某一个元素的值来初始化JTextField的
如果不是他应该是choices[0]或choices[1]或choices[2]才对呀
null,"What type of site is it?","Site Type",0,
JOptionPane.QUESTION_MESSAGE,null,choices,choices[0]);
来控制的,
showOptionDialog这是一个选项对话框
"what type of site is it?"--------显示的信息
Site Type--------title
用choice字符串数组的内容来显示在选项对话框内.Personal-----choice[0]是默认值. response3就是你在选项对话框中选得值.