Trigger button event from pressing another button

I have three buttons.

Button1
Button2
Button3

Button1 and Button2 do two seperate functions. Is it possible to have Button3, when pressed, trigger the actionperfromed on both Button1 and Button2 at the same time?

Thank you,
Jonathan

Sure, just call doClick() on Button1 and Button2:

event.source.parent.getComponent("Button1").doClick() event.source.parent.getComponent("Button2").doClick()

3 Likes