hi
i've written this much code in my program
public static void main(
String[] arg)
{
Image img = Toolkit.getDefaultToolkit().getImage(arg[0]);
PixelGrabber p = new PixelGrabber(img,0,0,72,14,false);
try{
p.grabPixels(1000);
}catch(InterruptedException e){System.out.println("Interrupted
thread :"+e);}
byte[] b = (byte[])p.getPixels();
System.out.println(b.length);
}
it runs perfectly prints the length of array but doesn't terminate untill i force it to.
can anybody tell me what's going wrong.
thanx