I am converting an existing swing app to JavaFX. I would think that this code would return a node called "#paneRightBottom", but it returns null. Using the netbeans debugger I am able to drill down on the "topNode" and find the "#paneRightBottom" node six levels deep, so it is there. I have read the online docs and think that I should be getting a node. Does anyone have an idea of where I've gone wrong?
Node topNode = FXMLLoader.load(AFI.class.getResource("afimain.fxml"));
System.out.println(topNode.getId());
Node node = topNode.lookup("#paneRightBottom");