public void playSelect(ArrayList<File> playlist) {
        while (true) {
            if (thread == null) {
                final File f = playlist.listIterator().next();
                thread = new Thread(new Runnable() {

                    @Override
                    public void run() {
                        player = new MP3Player(f);
                        player.play();
                        //mp3IsStillPlaying();      
                    }
                });
                thread.start();
            } else {
                if (!thread.isAlive()) {
                    thread.interrupt();
                    thread = null;
                }
            }
        } 
    }