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

ColorPicker shows a white rectangle on clicking on picker

XMLWordPrintable

    • b19
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      JavaFX- 21.0.1, java - openjdk version "21.0.1" 2023-10-17, OS - Ubuntu 20.04.3 LTS.

      A DESCRIPTION OF THE PROBLEM :
      When I click on color picker first time then there is an extra white rectangle. As I understand this is rectangle for white color. However, it must be shown when mouse is on white color but NOT when user click color picker to open it. <ImageOne.png>

      When I click on color picker second time then everything is ok - no white rectangle. <imageTWO.png>

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run JavaFxTest7 and click on color picker to open it.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When user click on color picker to open it there must be no white rectangle.
      ACTUAL -
      When user click on color picker to open it there is a white rectangle.

      ---------- BEGIN SOURCE ----------
          public class JavaFxTest7 extends Application {
          
              public static void main(String[] args) {
                  launch(args);
              }
          
              @Override
              public void start(Stage primaryStage) {
                  VBox root = new VBox();
                  ColorPicker picker = new ColorPicker(Color.CORAL);
                  root.getChildren().addAll(picker);
          
                  var scene = new Scene(root, 400, 300);
                  primaryStage.setScene(scene);
                  primaryStage.show();
              }
          
          }
      ---------- END SOURCE ----------

      FREQUENCY : always


        1. JavaFxTest7.java
          0.6 kB
        2. Capture_Windows11.png
          Capture_Windows11.png
          19 kB
        3. Capture_ubuntu.png
          Capture_ubuntu.png
          30 kB
        4. imageONE.png
          imageONE.png
          44 kB
        5. imageTWO.png
          imageTWO.png
          69 kB

            angorya Andy Goryachev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: