/** * Handles the componentShown event by invoking the componentShown methods on listener-a and * listener-b. * * @param e the component event */ public void componentShown(ComponentEvent e) { ((ComponentListener) a).componentShown(e); ((ComponentListener) b).componentShown(e); }