mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 14:20:46 +00:00
#1371 Go to character id (Ctrl+G in tag tree)
This commit is contained in:
@@ -67,6 +67,7 @@ import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JMenuItem;
|
||||
import javax.swing.JOptionPane;
|
||||
import static javax.swing.JOptionPane.QUESTION_MESSAGE;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.JPopupMenu;
|
||||
import javax.swing.JRootPane;
|
||||
@@ -572,6 +573,14 @@ public class View {
|
||||
return ret[0];
|
||||
}
|
||||
|
||||
public static String showInputDialog(Component parentComponent, final Object message, final String title, final Object initialSelection) {
|
||||
final String[] ret = new String[1];
|
||||
execInEventDispatch(() -> {
|
||||
ret[0] = (String) JOptionPane.showInputDialog(parentComponent, message, title, JOptionPane.QUESTION_MESSAGE, null, null, initialSelection);
|
||||
});
|
||||
return ret[0];
|
||||
}
|
||||
|
||||
public static SubstanceColorScheme getColorScheme() {
|
||||
return SubstanceColorSchemeUtilities.getActiveColorScheme(new JButton(), ComponentState.ENABLED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user