body = (Component)wtkxSerializer.readObject("pivot/tutorials/alert.wtkx");
} catch(Exception exception) {
System.out.println(exception);
}
Prompt prompt = new Prompt(MessageType.QUESTION, "Please select your favorite icon:",
options, body);
prompt.setTitle("Select Icon");
prompt.setSelectedOption(0);
prompt.getDecorators().update(0, new ReflectionDecorator());
prompt.open(window);
} else {
String message = (String)userData.get("message");
Prompt.prompt(MessageType.decode(messageType), message, window);
}
}