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

Can't lookup Node by id

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Environment:

      java 2.0 b40

      Description

      I have a node: stepDropper
      I've set an id: stepDropper.setId("STEP_DROPPER")

      The node is added to the Root node of the Scene.

      I call scene.lookup("STEP_DROPPER") at runtime - I get Null result


      The same scenario works if I set a CSS selector:
      stepDropper.getStyleClass().add("STEP_DROPPER")

      and then I call scene.lookup(".STEP_DROPPER") - I get the Node itself

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rbair Richard Bair (Inactive)
              Reporter:
              kiriljfx Kiril (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: