All pastes #936331 Raw Edit

McFly

public text v1 · immutable
·published 2008-03-10 10:30 UTC
rendered paste body
public class Kitt
{
	Thread th1;
	ImageFetcher imageF;
	Wrapper w;
	FrameClass f;
	
	public static void main(String args[]) 
	{
  	Kitt k = new Kitt();
  }   
  
  public Kitt() {
  	w = new Wrapper();
  	java.awt.EventQueue.invokeLater(new Runnable() {
    	public void run() {
    		f = new FrameClass();
    		f.setVisible(true);
    		f.listModel.insertElementAt("test", 0);  //I need to do this elsewhere also
    	}
   	});
   	imageF = new ImageFetcher(w);
		th1 = new Thread(imageF);
		th1.start(); 
	}            
}