MCPcopy Create free account
hub / github.com/PCGen/pcgen / showInputDialog

Method showInputDialog

code/src/java/pcgen/gui2/PCGenFrame.java:1447–1455  ·  view source on GitHub ↗
(String title, String message, String initialValue)

Source from the content-addressed store, hash-verified

1445 }
1446
1447 @Override
1448 public Optional<String> showInputDialog(String title, String message, String initialValue)
1449 {
1450 GuiAssertions.assertIsNotJavaFXThread();
1451 TextInputDialog dialog = GuiUtility.runOnJavaFXThreadNow(() -> new TextInputDialog(initialValue));
1452 dialog.setTitle(title);
1453 dialog.setContentText(message);
1454 return GuiUtility.runOnJavaFXThreadNow(dialog::showAndWait);
1455 }
1456
1457 @Override
1458 public void showLevelUpInfo(CharacterFacade character, int oldLevel)

Callers

nothing calls this directly

Calls 3

runOnJavaFXThreadNowMethod · 0.95
setTitleMethod · 0.65

Tested by

no test coverage detected