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

Incorrect background color on the right edge of Tooltip

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      When I set the background color for a Tooltip, the pixels on the right edge do not match the color I set. Here is the code to reproduce the issue:
      ```
      public class App extends Application {
          @Override
          public void start(Stage stage) throws Exception {
              Tooltip tooltip = new Tooltip("This is a tooltip.");
              tooltip.getStyleClass().clear();
              tooltip.setStyle("-fx-background-color: black; -fx-text-fill: white;");

              Button button = new Button("Hover me");
              button.setTooltip(tooltip);

              Scene scene = new Scene(button);
              scene.setFill(Color.WHITE);

              stage.setScene(scene);
              stage.setWidth(600);
              stage.setHeight(600);
              stage.show();
          }
      }
      ```


      FREQUENCY : always


        1. Test.java
          0.8 kB
          Anupam Dev
        2. Tooltip.mkv
          1.05 MB
          Anupam Dev

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

              Created:
              Updated: