calling a findactionperformed(evt) without pushing a button
I have a method that is triggered when a button is pressed.Is there a way to trigger the button behind the scenes withoutanyone actually pressing it? I can't call findactionperformedmethod without passing in an actual event. Is there a way around this?Thanks
[294 byte] By [
RycherXa] at [2007-10-3 9:45:35]

button.doClick();or, move the code from actionPerformed() into it's own method, called from actionPerformed,then the method can also be called from elsewhere in your code