public void update(Observable obs, Object object) {
if(obs == DataManager.getInstance()) {
@SuppressWarnings("unchecked")
Vector<DataSet> datasets = (Vector<DataSet>) object;
for (Iterator<DataSet> iter = datasets.iterator(); iter.hasNext();) {
DataSet dataset = iter.next();
if( !"".equals(dataset.getArtist()) ) {
tArtist.setText(dataset.getArtist());
}
if( !"".equals(dataset.getAlbum()) ) {
tAlbum.setText(dataset.getAlbum());
}
}
}
}