Q:

javafx clicking on button by codes

i want to click the button from a function.
i know this is possible in java applications we use 
jButton1.doClick();

Is there any thing in javafx to do same work
please help me
thank you.

A:

Yes, it is possible by using fire() on the button.
jButton1.fire();

