Package net.charliemeyer.jpowerhour

Examples of net.charliemeyer.jpowerhour.JPowerHourSong


    if(count >= 2)
    {
      int index = list.locationToIndex(event.getPoint());
      if(index != -1)
      {
        JPowerHourSong song = (JPowerHourSong) listModel.get(index);
        EditSongPanel panel = new EditSongPanel(song, this);
        panel.show();
      }
    }
  }
View Full Code Here


              {
                if(f.isFile())
                {
                  if(Extension.getExtension(f).equals(Extension.mp3))
                  {
                    JPowerHourSong song = new JPowerHourSong(f);
                        this.songListPanel.addPowerHourSong(song, false);
                  }
                }
              }
             
View Full Code Here

        {
            File file = chooser.getSelectedFile();
            lastOpenedFolder = file.getParentFile();
            try
            {
              JPowerHourSong song = new JPowerHourSong(file);
              this.songListPanel.addPowerHourSong(song, false);
            }
            catch(BasicPlayerException bpe)
            {
              bpe.printStackTrace();
View Full Code Here

        Document doc = new Document(root);
       
        Element songsElement = new Element("songs");
        for(int i = 0; i < songs.size(); i++)
        {
          JPowerHourSong song = songs.get(i);
         
          Element songElement = new Element("jPowerHourSong");
         
          songElement.setAttribute("index", i+"");
          try
          {
        songElement.setAttribute("path", song.getSongFile().getCanonicalPath());
      }
          catch (IOException e)
          {
        e.printStackTrace();
      }
          songElement.setAttribute("start",song.getStartTime()+"");
          songElement.setAttribute("length", song.getPlayLengthMs()+"");
          songsElement.addContent(songElement);
        }
        root.addContent(songsElement);
       
        Element interludesElement = new Element("interludes");
View Full Code Here

          }
          else
          {
            try
            {
          JPowerHourSong song = new JPowerHourSong(file);
          song.setPlayLengthMs(length);
          song.setStartPos(start);
          songs.add(index, song);
        }
            catch (BasicPlayerException e)
            {
          e.printStackTrace();
View Full Code Here

          File f = track.getFile();
          if(f.exists())
          {
            if(Extension.getExtension(f).equals(Extension.mp3))
            {
              JPowerHourSong song = new JPowerHourSong(f);
              parent.getSongListPanel().addPowerHourSong(song,false);
            }
          }
          else
          {
View Full Code Here

TOP

Related Classes of net.charliemeyer.jpowerhour.JPowerHourSong

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.