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

[Label] setLabelFor not working

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Not an Issue
    • P4
    • None
    • None
    • javafx

    Description

      @Override
          public void start(Stage primaryStage) {
              TextField textField = new TextField("Text field");
              Label label = new Label("Text Label");
              
              label.setFocusTraversable(true);
              label.setLabelFor(textField);
              
              Button button = new Button("Button");
              FlowPane flow = new FlowPane();
              flow.getChildren().addAll(textField, label, button);
              Scene scene = new Scene(flow, 500, 500);
              primaryStage.setScene(scene);
              primaryStage.setTitle(VersionInfo.getRuntimeVersion());
              primaryStage.show();
          }

      Attachments

        Issue Links

          Activity

            People

              miflemi Mick Fleming
              slugovoy Sergey Lugovoy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: