if (primaryStage.isMaximized()) { btnMax.setGraphic(resizeMin); btnMax.setTooltip(new Tooltip("Restore Down")); } else { btnMax.setGraphic(resizeMax); btnMax.setTooltip(new Tooltip("Maximize")); primaryStage.setHeight(maximizedBox.getHeight()); btnMax.setGraphic(resizeMin); btnMax.setTooltip(new Tooltip("Restore Down")); } else { originalBox = null; btnMax.setGraphic(resizeMax); btnMax.setTooltip(new Tooltip("Maximize"));
ssbutton2.setTooltip(new Tooltip("Button R2")); ssbutton2.setButtonType(ButtonType.RAISED); ssbutton2.getStyleClass().addAll(ANIMATED_OPTION_BUTTON, ANIMATED_OPTION_SUB_BUTTON2); sbutton2.setTooltip(new Tooltip("Button B2")); sbutton2.setButtonType(ButtonType.RAISED); sbutton2.getStyleClass().addAll(ANIMATED_OPTION_BUTTON, ANIMATED_OPTION_SUB_BUTTON); button2.setTooltip(new Tooltip("Button G2")); button2.setButtonType(ButtonType.RAISED); button2.getStyleClass().add(ANIMATED_OPTION_BUTTON);
private void initButtons() { // START AND STOP this.startButton.setOnMouseClicked(e -> { if (e.getButton().equals(MouseButton.SECONDARY)) { this.elevationPopup.show(this.startButton); } else { if (this.recognizer.state()) { this.stopSensor(); this.startButton.setTooltip(new Tooltip("Start the sensor")); this.startButton.setGraphic(ViewUtilities.iconSetter(Material.VISIBILITY, IconDim.MEDIUM)); } else { this.startSensor(); this.startButton.setTooltip(new Tooltip("Start the sensor")); this.startButton.setGraphic(ViewUtilities.iconSetter(Material.VISIBILITY_OFF, IconDim.MEDIUM)); } } }); // SAVE BUTTON this.saveSettingsButton.setGraphic(ViewUtilities.iconSetter(Material.SAVE, IconDim.MEDIUM)); JFXDepthManager.setDepth(this.saveSettingsButton, 4); this.saveSettingsButton.setOnAction(t -> this.saveSettings()); }
if (primaryStage.isMaximized()) { btnMax.setGraphic(resizeMin); btnMax.setTooltip(new Tooltip("Restore Down")); } else { btnMax.setGraphic(resizeMax); btnMax.setTooltip(new Tooltip("Maximize")); primaryStage.setHeight(maximizedBox.getHeight()); btnMax.setGraphic(resizeMin); btnMax.setTooltip(new Tooltip("Restore Down")); } else { originalBox = null; btnMax.setGraphic(resizeMax); btnMax.setTooltip(new Tooltip("Maximize"));