title: How can I get value from label text field which is dynamically changes JavaFX
body: <pre><code>&lt;Label fx:id="lblLibrarianId" layoutX="82.0" layoutY="14.0" prefHeight="24.0"  prefWidth="212.0" text="$librarianId" /&gt;
  </code></pre>
  
  <p>I have a controller name <code>LibraryController</code>. I set label value text to <code>librarianId</code> dynamically from another controller. Now, I want to access this <code>librarianId</code> to <code>LibraryController</code>.</p>
  
  <pre><code>final FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("../fxmlfile/librarian.fxml"));
          fxmlLoader.getNamespace().put("librarianId", librarianId);
  </code></pre>
  
  <p>This is the way how I set the value dynamically to <code>Label text field</code>. Now I want to retrieve that <code>Label Text value</code> to my <code>LibraryController</code>.</p>