Private cutils As ControlsUtils
cutils.ShowNotification("mytitle", "blablah...", cutils.ICON_INFORMATION)
You mean... the form... ??
B4X:
MainForm.SetOwner(Null)
this gives me error:
main._appstart (java line: 75)
java.lang.NullPointerException
at anywheresoftware.b4j.objects.Form.SetOwner(Form.java:222)
at b4j.example.main._appstart(main.java:75)
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.raiseEvent(BA.java:78)
at b4j.example.main.start(main.java:37)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(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$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:748)
Hello, I would like to have a window always on top of all the other desktop windows. "System top most". Is it possible with B4J? I have the feeling that it's the stage/toFront() from this page, but I don't know how to implement it in B4J. Thanks. [edit] : See the solution on post #10
Sub setAlwaysOnTop(frm As Object, Value As Boolean)
Dim frmJO As JavaObject = frm
Dim stage As JavaObject = frmJO.GetField("stage")
stage.RunMethod("setAlwaysOnTop", Array(Value))
End Sub