MCPcopy Create free account
hub / github.com/FabricMC/Matcher / showAlert

Method showAlert

src/main/java/matcher/gui/Gui.java:548–557  ·  view source on GitHub ↗
(AlertType type, String title, String headerText, String text)

Source from the content-addressed store, hash-verified

546 }
547
548 public void showAlert(AlertType type, String title, String headerText, String text) {
549 Alert alert = new Alert(type, text);
550
551 alert.setTitle(title);
552 alert.setHeaderText(headerText);
553
554 Platform.runLater(() -> alert.getDialogPane().getScene().getWindow().sizeToScene()); // work around linux display bug (JDK-8193502)
555
556 alert.showAndWait();
557 }
558
559 public boolean requestConfirmation(String title, String headerText, String text) {
560 Alert alert = new Alert(AlertType.CONFIRMATION, text);

Callers 4

showMatchingStatusMethod · 0.80
loadMappingsMethod · 0.80
saveMappingsMethod · 0.80
saveMatchesMethod · 0.80

Calls 1

getSceneMethod · 0.80

Tested by

no test coverage detected