// synthetic event direct to processEvent method.
import java.event.ActionEvent;
...
ActionEvent fakeEvent = new ActionEvent( myButton, ActionEvent.ACTION_PERFORMED, "send" );
myButton.processEvent( fakeEvent );