Alert alert = new Alert(MessageType.QUESTION, "Please select your favorite icon:",
options, body);
alert.setTitle("Select Icon");
alert.setSelectedOptionIndex(0);
alert.getDecorators().update(0, new ReflectionDecorator());
alert.open(KitchenSink.this.window);
} else {
String message = (String)userData.get("message");
Alert.alert(MessageType.valueOf(messageType.toUpperCase()), message, KitchenSink.this.window);
}
}