Daestrum Expert Licensed User Longtime User Jan 6, 2014 #1 Is there any way to coerce this to accept B4X: javaobject1.InitializeStatic("com.sun.glass.ui.Application.GetApplication().createRobot()") instead of having to split it over three lines like below B4X: javaobject1.InitializeStatic("com.sun.glass.ui.Application") javaobject2 = javaobject1.runMethod("GetApplication",null) javaobject3 = javaobject2.runMethod("createRobot",null) Last edited: Jan 7, 2014
Is there any way to coerce this to accept B4X: javaobject1.InitializeStatic("com.sun.glass.ui.Application.GetApplication().createRobot()") instead of having to split it over three lines like below B4X: javaobject1.InitializeStatic("com.sun.glass.ui.Application") javaobject2 = javaobject1.runMethod("GetApplication",null) javaobject3 = javaobject2.runMethod("createRobot",null)
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2014 #2 Good idea. Starting from JavaObject v1.00 you will be able to write it this way: B4X: jo.InitializeStatic("com.sun.glass.ui.Application").RunMethodJO("GetApplication", Null).RunMethodJO("createRobot", Null) This library will be included in the next versions of B4A and B4J. Upvote 0
Good idea. Starting from JavaObject v1.00 you will be able to write it this way: B4X: jo.InitializeStatic("com.sun.glass.ui.Application").RunMethodJO("GetApplication", Null).RunMethodJO("createRobot", Null) This library will be included in the next versions of B4A and B4J.
Daestrum Expert Licensed User Longtime User Jan 7, 2014 #3 Thank you Erel. (sorry to keep making work for you). Upvote 0