skipButton.addItemListener(skipButtonListener());
allOptions.add(skipButton);
}
final String[] buttons = buttons();
/* populate buttonToObjectMap */
MyButton defaultButtonClass = null;
for (int i = 0; i < buttons.length; i++) {
options[i] = widgetFactory.createButton(buttons[i], icons[i]);
options[i].setBackgroundColor(Tools.getDefaultColor("ConfigDialog.Button"));
allOptions.add(options[i]);
buttonToObjectMap.put(buttons[i], options[i]);
if (buttons[i].equals(defaultButton())) {
defaultButtonClass = options[i];
}
}
/* create option pane */
final MyButton dbc = defaultButtonClass;
application.invokeAndWait(new Runnable() {
@Override
public void run() {
optionPane = new JOptionPane(body(),
getMessageType(),