[TASK] Added UILog with default value option

This commit is contained in:
Jeroen Ketelaar
2019-05-21 23:07:45 -05:00
parent 00b09a64f5
commit a32c3fa30b
@@ -39,4 +39,9 @@ public class UILog {
return JOptionPane.showOptionDialog(null, message, title,
JOptionPane.YES_NO_CANCEL_OPTION, messageType, null, options, null);
}
public static int alert(final String title, final String message, Object[] options, int initialValue, int messageType) {
return JOptionPane.showOptionDialog(null, message, title,
JOptionPane.YES_NO_CANCEL_OPTION, messageType, null, options, initialValue);
}
}