B4J Question BalConverter crashes

techknight

Well-Known Member
Licensed User
Longtime User
So, I am trying to convert a very complicated and dense layout, one that took hours in B4J, over to B4A so I found BalConverter.

However, when I run the program, it will crash as soon as I click browse. I do not know why.

B4X:
main._btnbrowse_action (java line: 89)
java.lang.IllegalArgumentException: Folder parameter must be a valid folder
    at com.sun.glass.ui.CommonDialogs.convertFolder(CommonDialogs.java:238)
    at com.sun.glass.ui.CommonDialogs.showFolderChooser(CommonDialogs.java:226)
    at com.sun.javafx.tk.quantum.QuantumToolkit.showDirectoryChooser(QuantumToolkit.java:1534)
    at javafx.stage.DirectoryChooser.showDialog(DirectoryChooser.java:103)
    at anywheresoftware.b4j.objects.DirectoryChooserWrapper.Show(DirectoryChooserWrapper.java:43)
    at b4j.example.main._btnbrowse_action(main.java:89)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
    at anywheresoftware.b4a.BA$1.run(BA.java:216)
    at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
    at java.lang.Thread.run(Thread.java:748)
 

lucasheer

Active Member
Licensed User
Longtime User
What version of B4J/B4A are you running?

I believe layouts are fully copyable between ALL designers now. Try to just C+P the views and script by hand.
 
Upvote 0
Top