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();
  }
}

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 ( ) ; } }
invoked when an action occurs .
