I have a project with Virtical and Horizontal SlidePane To be able to populate the main form I created forms to layout in :
I have this error:
java.lang.RuntimeException: Object should first be initialized (TextArea).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4j.objects.TextInputControlWrapper.getText(TextInputControlWrapper.java:46)
at b4j.example.main._affichelog(main.java:286)
at b4j.example.localizator._localize(localizator.java:49)
at b4j.example.main._createrightsizelayout(main.java:1041)
at b4j.example.main._appstart(main.java:1016)
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:497)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:231)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at b4j.example.main.start(main.java:38)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(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$149(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)
B4X:
Private textLog As TextArea ' in Center down form
MainForm = Form1
MainForm.SetFormStyle("DECORATED")
MainForm.RootPane.LoadLayout("Main") 'Load the layout file.
MainForm.Title = "MyMig Application - Version 2.4"
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "TabPane.css"))
spVleft.LoadLayout("LeftSide")
spVleft.LoadLayout("Center")
spVleft.LoadLayout("RightTab")
CreateRightSizeLayout
CreateLeftSizeLayout
CreateCenterSizeLayout
Sub CreateCenterSizeLayout
SPCentre.LoadLayout("CenterHaut")
SPCentre.LoadLayout("CenterMilieu")
SPCentre.LoadLayout("CenterBas")
CreateCenterBasSizeLayout
End Sub
Sub CreateCenterBasSizeLayout
TabLog.LoadLayout("CenterBasTabLog",loc.Localize("Log"))
TabLog.LoadLayout("CenterBasTabEdit",loc.Localize("Edit"))
TabLog.LoadLayout("CenterBasTabTable",loc.Localize("Tables"))
TabLog.LoadLayout("CenterBasTabHistory",loc.Localize("History SQL"))
End Sub
Sub CreateRightSizeLayout
tabRight.LoadLayout("RightTableTV",loc.Localize("Tables"))
tabRight.LoadLayout("RightFieldTV",loc.Localize("Fields"))
End Sub
Sub CreateLeftSizeLayout
spLeft.LoadLayout("LeftTab")
spLeft.LoadLayout("leftTV")
Tableft.LoadLayout("LeftTableTV",loc.Localize("Tables"))
Tableft.LoadLayout("ConnectTV",loc.Localize("Connections"))
End Sub
I have this error:
java.lang.RuntimeException: Object should first be initialized (TextArea).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:32)
at anywheresoftware.b4j.objects.TextInputControlWrapper.getText(TextInputControlWrapper.java:46)
at b4j.example.main._affichelog(main.java:286)
at b4j.example.localizator._localize(localizator.java:49)
at b4j.example.main._createrightsizelayout(main.java:1041)
at b4j.example.main._appstart(main.java:1016)
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:497)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:613)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:231)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
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:497)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:90)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:77)
at b4j.example.main.start(main.java:38)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$163(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$176(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$174(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$175(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$149(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)