mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-20 01:05:37 +00:00
Input dialogs with icon
This commit is contained in:
@@ -136,6 +136,14 @@ public class ViewMessages {
|
||||
});
|
||||
return ret[0];
|
||||
}
|
||||
|
||||
public static String showInputDialog(Component parentComponent, final Object message, final String title, final Icon icon, final Object initialSelection) {
|
||||
final String[] ret = new String[1];
|
||||
View.execInEventDispatch(() -> {
|
||||
ret[0] = (String) JOptionPane.showInputDialog(parentComponent, message, title, JOptionPane.QUESTION_MESSAGE, icon, null, initialSelection);
|
||||
});
|
||||
return ret[0];
|
||||
}
|
||||
|
||||
public static Color showColorDialog(Component parentComponent, Color initialColor, boolean withTransparency) {
|
||||
MyColorChooserDialog colorDialog = new MyColorChooserDialog(parentComponent, initialColor, withTransparency);
|
||||
|
||||
Reference in New Issue
Block a user