title: Giving JmenuItems loaded from a text file an action
body: <p>I'm loading JmenuItems from a text file using this code</p>
  
  <pre><code>FileInputStream wordsFile = new FileInputStream(signlink.findcachedir() + "/Playlist.div");
          BufferedReader br = new BufferedReader(new InputStreamReader(wordsFile));
          String[] favoriteSongs = new String[15];
          for (int i = 0; i &lt; favoriteSongs.length; i++) {
              favoriteSongs[i] = br.readLine();
              if (favoriteSongs[i] != null) {
                  System.out.println(favoriteSongs[i]);
                  JMenuItem song = new JMenuItem(favoriteSongs[i]);
                  song.addActionListener(this);
                  favorites.add(favoriteSongs[i]);
              } else { 
                  wordsFile.close();
                  break;
              }
          }   
  </code></pre>
  
  <p>How do I add actions for the JmenuItems </p>