Package ncrossley.itunes

Examples of ncrossley.itunes.Playlist


  private void handleImportPlaylistOption()
  {
    int index = list.getSelectedIndex();
    if(index != -1)
    {
      Playlist playlist = (Playlist)this.model.get(index);
      parent.getSongListPanel().clearSongs();
      for(Track track : playlist.getTracks())
      {
        try
        {
          File f = track.getFile();
          if(f.exists())
View Full Code Here


  public Component getListCellRendererComponent(JList list, Object obj,
      int pos, boolean isSelected, boolean cellHasFocus)
  {

    Playlist playlist = (Playlist)obj;
   
    String text = playlist.getName()+" - "+playlist.getTracks().size()+" songs";

    setText(text);

    if (isSelected)
    {
View Full Code Here

TOP

Related Classes of ncrossley.itunes.Playlist

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.