pane.setOptions(options);
// Make "Option 2" the default button.
pane.setInitialValue("Option 2");
JDialog dialog = pane.createDialog(parent_, "Custom JOptionPane");
dialog.show();
Object selectedValue = pane.getValue();
System.err.println("Selected value is " + selectedValue);
results[ 0] = "The input value is \"" + (String) pane.getInputValue()
+ "\"";