Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118771

DatePicker: When set style "-fx-border" width increased steadily if scene with focus

    XMLWordPrintable

    Details

      Description

      Code reproduce :

      @Override
          public void start(Stage stage) throws Exception {
              BorderPane root = new BorderPane();
              
              final DatePicker picker = new DatePicker();
              
              ScheduledExecutorService service = Executors.newScheduledThreadPool(1);
              service.schedule(new Runnable() {

                  @Override
                  public void run() {
                      Platform.runLater(new Runnable() {

                          @Override
                          public void run() {
                              picker.setStyle("-fx-border-width:10;-fx-border-color:red;");
                              System.out.println("Set border.");
                          }
                      });
                  }
              }, 8, TimeUnit.SECONDS);
              root.setCenter(picker);
              Scene scene = new Scene(root, 600, 300);
              stage.setScene(scene);
              stage.setTitle(VersionInfo.getRuntimeVersion());
              stage.show();
          }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              slugovoy Sergey Lugovoy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Imported: