#1371 Go to character id (Ctrl+G in tag tree)

This commit is contained in:
Jindra Petřík
2021-03-12 22:12:39 +01:00
parent 277aa6c59e
commit 028ef6d0cf
4 changed files with 48 additions and 1 deletions
@@ -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);
}