The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

thread

Posted by Chin Loong on December 01, 2001 at 2:37 PM

use a class .. probably called InitImage that implements Runnable that u can pass variables i and j into its constructor. The constructor will then call the

public void run()
to load the specific image.

then u do something like this


for(int i=0;i<13;i++)
{
for(int j=0;j<4;j++)
{
Thread t=new Thread(new InitImage(i,j));
t.start();
}
}




Replies:
  • oopsie Chin Loong December 01, 2001 at 2:40 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us