FileDocCategorySizeDatePackage
CatchMulti.javaAPI DocExample3413Sun Feb 08 21:34:06 GMT 2004None

CatchMulti

public class CatchMulti extends Object
A failed attempt at catching interrupts thrown in the GUI event thread.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		try {
			// Create the GUI, will implicitly create and start a GUI thread
			new ThrowAWT().setVisible(true); 
			// Wait a while.
			Thread.sleep(1000 * 20);
			// Create and start a thread that gives 
			// an ArrayIndexOutOfBoundsException
			new ThrowIndex().start();
		} catch (Exception ex) {
			System.out.println("Caught exception: " + ex);
			System.exit(1);
		}