private void showMemoryWarning() { Logger.warning("Memory " + (MEMORY_FULL_WARNING_THRESHOLD * 100.0) + "% full."); ThreadHelper.runOnFxThread( () -> { Alert alert = new Alert(AlertType.WARNING); alert.setTitle(FxComponent.DEFAULT_RESOURCES.getString("MemoryWarningPane.title")); alert.setHeaderText(FxComponent.DEFAULT_RESOURCES.getString("MemoryWarningPane.header")); alert.setContentText( FxComponent.DEFAULT_RESOURCES.getString("MemoryWarningPane.message")); alert.show(); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); stage.toFront(); stage.setAlwaysOnTop(true); }); }
private void handleHelpAction(javafx.event.ActionEvent event) { edu.wustl.lookingglass.croquetfx.ThreadHelper.runOnSwingThread( () -> { org.alice.ide.issue.croquet.GraphicsDriverHelpOperation.getInstance().fire(); }); }