If the user opens the jfx DatePicker but then does not change the date then moves focus elsewhere in the form the initialised DatePicker remains open.
I saw this code used in slightly different context.... I guess it can be modified to listen for a LostFocus event? Is there a reference source for the java string values to use and how this is done somewhere?
I saw this code used in slightly different context.... I guess it can be modified to listen for a LostFocus event? Is there a reference source for the java string values to use and how this is done somewhere?
B4X:
Sub Initialize
Dim dp As JavaObject = DatePicker1
Dim e As Object = dp.CreateEvent("javafx.event.EventHandler", "dp_OnAction", False)
dp.RunMethod("setOnAction", Array(e))
End Sub
Private Sub dp_OnAction_Event(MethodName As String, Args() As Object)
'your action
End Sub
Last edited: