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

Method showWarningMessage

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

Source from the content-addressed store, hash-verified

1435 }
1436
1437 @Override
1438 public void showWarningMessage(String title, String message)
1439 {
1440 GuiAssertions.assertIsNotJavaFXThread();
1441 Alert alert = GuiUtility.runOnJavaFXThreadNow(() -> new Alert(Alert.AlertType.WARNING));
1442 alert.setTitle(title);
1443 alert.setContentText(message);
1444 GuiUtility.runOnJavaFXThreadNow(alert::showAndWait);
1445 }
1446
1447 @Override
1448 public Optional<String> showInputDialog(String title, String message, String initialValue)

Callers

nothing calls this directly

Calls 3

runOnJavaFXThreadNowMethod · 0.95
setTitleMethod · 0.65

Tested by

no test coverage detected