user3204934
user3204934

Reputation: 545

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.

Upvotes: 1

Views: 2463

Answers (1)

ItachiUchiha
ItachiUchiha

Reputation: 36792

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

jButton1.fire();

Upvotes: 7

Related Questions