import java.awt.* ; import java.util.* ; public class MyMulticaster1 extends AWTEventMulticaster implements EmailEntryListener { // need a constructor. public MyMulticaster1( EventListener l1, EventListener l2 ) { super( l1,l2 ) ; } // email entry events public static EmailEntryListener add( EmailEntryListener x, EmailEntryListener y ) { return ( EmailEntryListener ) addInternal( x, y ) ; } public static EmailEntryListener remove( EmailEntryListener x, EmailEntryListener y ) { return ( EmailEntryListener ) removeInternal( x, y ) ; } public void done( EmailEntryEvent e ) { ((EmailEntryListener)a).done( e ) ; ((EmailEntryListener)b).done( e ) ; } public void cancel( EmailEntryEvent e ) { ((EmailEntryListener)a).cancel( e ) ; ((EmailEntryListener)b).cancel( e ) ; } }