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

[Label] setLabelFor not working

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: