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

[Tooltip] graphic text gap doesn't affect.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 7u6
    • Fix Version/s: 8u60
    • Component/s: javafx
    • Labels:
    • Environment:

      2.2.0b19

      Description

      You can see it on the attached movie.

      Code:

          @Override
          public void start(Stage stage) throws Exception {
              VBox vb = new VBox();

              Tooltip tp = new Tooltip();
              tp.setText("text");
              tp.setGraphic(new Rectangle(0, 0, 10, 10));

              Button b = new Button("with tooltip");

              b.setTooltip(tp);

              Slider slider1 = new Slider(0, 100, 50);
              slider1.setShowTickLabels(true);
              slider1.setShowTickMarks(true);

              slider1.valueProperty().bindBidirectional(tp.graphicTextGapProperty());

              vb.getChildren().addAll(b, new Label("Graphic text gap"), slider1);

              Scene scene = new Scene(vb, 300, 300);
              stage.setScene(scene);
              stage.show();
          }

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              akirov Alexander Kirov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: