B4J Question BBScrollingLabel customview crash

lordor

Member
in the visual designer , create thd BBScrollingLabel1, no input code,complie and run ,get a error

1658904853640.png





Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1053)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
at b4j.example.bblabel._setvvvvvvvvvvvvvvvv0(bblabel.java:260)
at b4j.example.bbscrollinglabel._vvvvvvvvvvvvvvvv5(bbscrollinglabel.java:412)
at b4j.example.bbscrollinglabel$ResumableSub_DesignerCreateView.resume(bbscrollinglabel.java:380)
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1051)
... 7 more
 

teddybear

Well-Known Member
Licensed User
To use BBScrollingLabel you need to add BCTextEngine

 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
To use BBScrollingLabel you need to add BCTextEngine
B4X:
Private TextEngine As BCTextEngine
TextEngine.Initialize(Activity) 'change to Form.RootPane in B4J or Page.RootPanel in B4i. Or Root in B4XPage
BBScrollingLabel1.TextEngine = TextEngine
 
Upvote 0
Top