Object[] options = new Object[] { MessageManager.getString("action.ok"),
MessageManager.getString("action.cancel") };
String title = MessageManager
- .getString("label.adjunst_foreground_text_colour_threshold");
- RunResponse action = new RunResponse(JvOptionPane.NO_OPTION) // Cancel
+ .getString("label.adjust_foreground_text_colour_threshold");
+ RunResponse action = new RunResponse(JvOptionPane.NO_OPTION) // = 1 Cancel
{
@Override
public void run()
restoreInitialSettings();
}
};
- JvOptionPane.newOptionDialog(alignPanel).response(action)
+ JvOptionPane.newOptionDialog(alignPanel).addResponse(action)
.showInternalDialog(bigpanel, title,
JvOptionPane.YES_NO_CANCEL_OPTION,
JvOptionPane.PLAIN_MESSAGE, null, options,