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

Tooltip doesn't appear when hovering over standard controls.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx

      Setting a control with a Tooltip

      public class Main extends Application{

           @Override
          public void start() {
            
              Stage stage = new Stage();

              stage.setTitle("Controls Functional testing");
              stage.setWidth(500);
              stage.setHeight(500);

              final Group root = new Group();
              Scene scene = new Scene(root);
              TextBox txbox = new TextBox();
              Tooltip tt1 = new Tooltip("text box tooltip");
              txbox.setTooltip(tt1);
              vb.getChildren().addAll(txbox);


              root.getChildren().add(vb);

              stage.setScene(scene);
              stage.setVisible(true);
           }
          /**
           * @param args the command line arguments
           */
          public static void main(String[] args) {
              Launcher.launch(Main.class, args);
          }

      }

            psomashe Parvathi Somashekar (Inactive)
            cdea Carl Dea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: