//class where I want to add the labels. Works in the constructor, but not the run method. import java.util.*; public class CreateShips extends Thread{ EnemyShip[] enemies = new EnemyShip[30]; public CreateShips(){ } public void run(){ while(true){ create(); try{ sleep((int)(Math.random()*4000+1000)); } catch(Exception e){ System.out.println("Couldn't sleep"); } } } public void create(){ for(int i = 0; i