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