Hi,
developed (in java) my first working [not easy must say = sweat]) JavaFX Custom Control TextFieldNowWidget: An Anchorpane with a Label, TextField and Button (to set the actual date + time in the TextField). Methods defined are setLabel(String s), getText, getVersion.
1) Exported the Custom Control TextFieldNowWidget to a jar and copied to the B4J external libraries folder.
2) Build a B4J wrapper jTextFieldNowWidget for this Custom Control and copied to the B4J external libraries folder.
3) created a sample app in B4J using TextFieldNowWidget (added as additional jar) and jTextFieldNowWidget (added as a Lib).
To access TextFieldNowWidget in B4J, defined:
Question
Instead of using a JavaObject to access the TextFieldNow methods, like getText is there a way to use textfieldnowwidget1.getText?
What do I need to change in the Wrapper?
Pls find code attached.
developed (in java) my first working [not easy must say = sweat]) JavaFX Custom Control TextFieldNowWidget: An Anchorpane with a Label, TextField and Button (to set the actual date + time in the TextField). Methods defined are setLabel(String s), getText, getVersion.
1) Exported the Custom Control TextFieldNowWidget to a jar and copied to the B4J external libraries folder.
2) Build a B4J wrapper jTextFieldNowWidget for this Custom Control and copied to the B4J external libraries folder.
3) created a sample app in B4J using TextFieldNowWidget (added as additional jar) and jTextFieldNowWidget (added as a Lib).
To access TextFieldNowWidget in B4J, defined:
B4X:
Sub Process_Globals
Private textfieldnowwidget1 As Node
...
'Get the text from the inputfield
'Not found a way yet to directly access the methods by using textfieldnowwidget1.method, like textfieldnowwidget1.getText
Sub btnGetText_Action
Dim jo As JavaObject = textfieldnowwidget1
lblGetText.Text = jo.RunMethod("getText", Null)
'JUST for a Test Log(jo.RunMethod("getVersion", Null))
End Sub
Question
Instead of using a JavaObject to access the TextFieldNow methods, like getText is there a way to use textfieldnowwidget1.getText?
What do I need to change in the Wrapper?
Pls find code attached.