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]
# 1
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
Michael_Dunna at 2007-7-15 5:02:16 > top of Java-index,Desktop,Core GUI APIs...
# 2
I felt like a dumb a** for a moment after your answer.thanks.
RycherXa at 2007-7-15 5:02:16 > top of Java-index,Desktop,Core GUI APIs...