Retrieving user input from showOptionDialog
I need help retrieving the input that the user has entered. I have an OptionDialog box with 4 Textfields.
Object[] message = new Object[8];
message[0] = new JLabel("Website");
message[1] = JTextField web = new JTextField ("WebSite Address");
message[2] = new JLabel("Username");
message[3] = new JTextField("Username");
message[4] = new JLabel("Password");
message[5] = new JPasswordField();
message[6] = new JLabel("Notes");
message[7] = new JTextField("Notes about site");
String[] options = {"OK", "Cancel"};
int answer = JOptionPane.showOptionDialog(container, message, "New Entry",JOptionPane.DEFAULT_OPTION, OptionPane.INFORMATION_MESSAGE,
null, options, options[0]);
Now after the user fills out the information and clicks "OK" how do I get the input?

