functional/ControlsTests/src/javafx/scene/control/test/labeleds/newapps/LabeledsApp.java

Print this page

        

*** 27,37 **** import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.control.Button; - import javafx.scene.control.ButtonBuilder; import javafx.scene.control.Label; import javafx.scene.control.Labeled; import javafx.scene.control.test.utils.CommonPropertiesScene; import javafx.scene.control.test.utils.ptables.PropertiesTable; import javafx.scene.control.test.utils.ptables.PropertyTablesFactory; --- 27,36 ----
*** 85,95 **** HBox hb = (HBox) getRoot(); hb.setPadding(new Insets(5, 5, 5, 5)); hb.setStyle("-fx-border-color : green;"); ! Button resetButton = ButtonBuilder.create().id(RESET_BUTTON_ID).text("Reset").build(); resetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { HBox hb = (HBox) getRoot(); hb.getChildren().clear(); prepareScene(); --- 84,95 ---- HBox hb = (HBox) getRoot(); hb.setPadding(new Insets(5, 5, 5, 5)); hb.setStyle("-fx-border-color : green;"); ! Button resetButton = new Button("Reset"); ! resetButton.setId(RESET_BUTTON_ID); resetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { HBox hb = (HBox) getRoot(); hb.getChildren().clear(); prepareScene();