Issue #42: Bug fix when creating JOptionPane as YES_NO and PLAIN_MESSAGE.