I'm trying to create a cross platform project.
I have a layout with a long panel that I load in another layout into a scrollview.
This is the code:
It works when I compile in B4A, but in B4J I get this error:
How can I fix it?
Thanks in advance for any tips.
I have a layout with a long panel that I load in another layout into a scrollview.
This is the code:
B4X:
Private pnlProfile As B4XView
Private scroll1 As B4XView
Private Sub B4XPage_Created (Root1 As B4XView)
Root.LoadLayout("layScroll")
scroll1.GetView(0).LoadLayout("profile")
scroll1.ScrollViewContentHeight = pnlProfile.Height
End Sub
B4X:
java.lang.RuntimeException: java.lang.ClassCastException: class javafx.scene.control.ScrollPane cannot be cast to class javafx.scene.layout.Pane (javafx.scene.control.ScrollPane is in module javafx.controls of loader 'app'; javafx.scene.layout.Pane is in module javafx.graphics of loader 'app')
Thanks in advance for any tips.