mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +00:00
[TASK] Added UILog with default value option
This commit is contained in:
@@ -39,4 +39,9 @@ public class UILog {
|
|||||||
return JOptionPane.showOptionDialog(null, message, title,
|
return JOptionPane.showOptionDialog(null, message, title,
|
||||||
JOptionPane.YES_NO_CANCEL_OPTION, messageType, null, options, null);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user