I have in code implement ActionListener for JToggleButton. How to call from code like that button clicked? (similar in javascript from code I can do $('button').click();)
How to do this in Java?
I have in code implement ActionListener for JToggleButton . How to call from code
Share
For
JButtonwe havebutton.doClick(), inherited fromAbstractButton. So, we should havedoClick()forJToggleButton()as well, since that is also derived fromAbstractButton.