this.setMaximizable(false);
this.setMinimizable(false);
this.setResizable(false);
this.setModal(true);
ImageReference icon = getMessageIcon(messageType);
Label iconLabel = new Label("");
int iconHeight = 0;
if (icon != null) {
iconLabel.setIcon(icon);
iconHeight = icon.getHeight().getValue();
}
// Split newlines into multiple labels
if (message instanceof String) {
String[] lines = ((String) message).split("\n");
if (lines.length > 1) {
message = lines;
}
}
Column messageColumn = new Column();
if (message.getClass().isArray()) {
Object[] messageList = (Object[]) message;
for (int i = 0; i < messageList.length; i++) {
messageColumn.add(new Label(messageList[i].toString()));
}
} else {
messageColumn.add(new Label(message.toString()));
}
final int labelCount = messageColumn.getComponentCount();
JbsButton btnDetails = null;
if (exception!=null) {