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

[Tooltip] graphic text gap doesn't affect.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8u60
    • 7u6
    • javafx
    • 2.2.0b19

      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();
          }

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

              Created:
              Updated:
              Resolved:
              Imported: