question: public void actionPerformed ( ActionEvent e ) { File nextPage = ( File ) JOptionPane . showInputDialog ( eezeFrame , "Choose a demo file" , "Choose Demo" , JOptionPane . PLAIN_MESSAGE , null , testFiles . toArray ( ) , currentDisplayed ) ; try { switchPage ( nextPage , false ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } }
target:  Invoked when an action occurs.