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