Package jMp3Tag

Examples of jMp3Tag.Tag


    }
  }

  public void saveTag() {
    for (int i = 0; i < files.size(); i++) {
      Tag t = new Tag((String) files.elementAt(i));
      try {
        t.Read();
      } catch (IOException e1) {
        e1.printStackTrace();
      }
      System.out.println("Comienza guardado");
      TextField text;
      text = (TextField) this.get(controls_init+0);
      System.out.println("Title:" + text.getString());
      if (text.getString().compareTo("") != 0) {
        t.setAlbum(text.getString());
        System.out.println("Album <= " + text.getString());
      }

      text = (TextField) this.get(controls_init+1);
      System.out.println("Title:" + text.getString());
      if (text.getString().compareTo("") != 0) {
        t.setComposer(text.getString());
        System.out.println("Composer <= " + text.getString());
      }

      text = (TextField) this.get(controls_init+2);
      if (text.getString().compareTo("") != 0) {
        t.setArtist(text.getString());
        System.out.println("Artist <= " + text.getString());
      }

      text = (TextField) this.get(controls_init+3);
      if (text.getString().compareTo("") != 0) {
        t.setYear(text.getString());
        System.out.println("Year <= " + text.getString());
      }
      try {
        t.Save(true);
      } catch (IOException e) {
        e.printStackTrace();
      }
    }
  }
View Full Code Here


public class FileEditor extends Form {
  Tag t = null;
  public FileEditor(String title) {
    super(title);
    t = new Tag(title);
    try {
      t.Read();
    } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of jMp3Tag.Tag

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.