Reputation: 545
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.
Upvotes: 1
Views: 2463
Reputation: 36792
Yes, it is possible by using fire()
on the button.
jButton1.fire();
Upvotes: 7