Java Question What is the corresponding "scene object" in B4J?

moster67

Expert
Licensed User
Longtime User
What is the corresponding "scene object" in B4J?

B4X:
public MyUtility(Scene scene, Pane indicatorLayer) {
    //.....
}

 public void Initialize(final BA ba, Scene scene, Pane indicatorLayer){
    //....
 }

I am unsure what B4J-object I need to pass as a Scene parameter. From my code in B4J, I tried to pass "MainForm.RootPane" as a Scene-object but I got an error message saying "AnchorPane cannot be converted to Scene".
So I am just wondering what B4J-object is the constructor expecting?

Thanks.
 
Top