ho guardato e ho provato ad inserire un thread ma il problema rimane

codice:
try{
          (new PlayerThread()).start();  
          while( !mp3.isComplete() ){
            int position = mp3.getPosition();
            System.out.println( "Position: " + position );
            try{
              Thread.sleep( 1000 );
            }catch( Exception ee ){
              ee.printStackTrace();
            }
          }
          }catch( Exception ee ){
          ee.printStackTrace();
          }
codice:
class PlayerThread extends Thread{
        
            public void run(){
            
            try{
                mp3.play();
            }catch( Exception e ){
                e.printStackTrace();
            }
            }
hai altri suggerimenti o vedi errori nel thread che ho inserito?