functional/ControlsTests/src/javafx/scene/control/test/datepicker/DatePickerApp.java

Print this page

        

*** 35,45 **** import javafx.event.EventHandler; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; - import javafx.scene.control.ButtonBuilder; import javafx.scene.control.DateCell; import javafx.scene.control.DatePicker; import javafx.scene.control.test.utils.CommonPropertiesScene; import javafx.scene.control.test.utils.ptables.PropertiesTable; import javafx.scene.control.test.utils.ptables.PropertyTablesFactory; --- 35,44 ----
*** 124,144 **** HBox hb = (HBox) getRoot(); hb.setPadding(new Insets(5, 5, 5, 5)); hb.setStyle("-fx-border-color : green;"); ! Button hardResetButton = ButtonBuilder.create().id(HARD_RESET_BUTTON_ID).text("Hard reset").build(); hardResetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { HBox hb = (HBox) getRoot(); hb.getChildren().clear(); prepareMainSceneStructure(); prepareScene(); } }); ! Button softResetButton = ButtonBuilder.create().id(SOFT_RESET_BUTTON_ID).text("Soft reset").build(); softResetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { propertiesTable.refresh(); DatePicker newOne = new DatePicker(); testedDatePicker.setValue(newOne.getValue()); --- 123,145 ---- HBox hb = (HBox) getRoot(); hb.setPadding(new Insets(5, 5, 5, 5)); hb.setStyle("-fx-border-color : green;"); ! Button hardResetButton = new Button("Hard reset"); ! hardResetButton.setId(HARD_RESET_BUTTON_ID); hardResetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { HBox hb = (HBox) getRoot(); hb.getChildren().clear(); prepareMainSceneStructure(); prepareScene(); } }); ! Button softResetButton = new Button("Soft reset"); ! softResetButton.setId(SOFT_RESET_BUTTON_ID); softResetButton.setOnAction(new EventHandler<ActionEvent>() { public void handle(ActionEvent t) { propertiesTable.refresh(); DatePicker newOne = new DatePicker(); testedDatePicker.setValue(newOne.getValue());