### Event SetOnAction

Example for handling DatePicker SetOnAction Event.
Reference: http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/DatePicker.html
`Sub Process_Globals
Private DatePicker1 As DatePicker
...
End Sub`
In AppStart
...
'Handle date changes for the datepicker
Dim dp As JavaObject = DatePicker1
Dim e As Object = dp.CreateEvent("javafx.event.EventHandler", "dp_OnAction", False)
dp.RunMethod("setOnAction", Array(e))
...
'An action has taken place, ie date changed, trigger an action accordingly
`Private Sub dp_OnAction_Event(MethodName As String, Args() As Object)
Log($"DP Action Event triggered = ${DateTime.Date(DatePicker1.DateTicks)}"$)
End Sub`

Changed: , Category: DatePicker JavaFX 8, File: T6C182M1311.htm, ID: 1311