FileDocCategorySizeDatePackage
JFrameDemoSafe.javaAPI DocExample606Sat Mar 06 21:57:14 GMT 2004None

JFrameDemoSafe

public class JFrameDemoSafe extends Object
Create a JFrame class in a thread-safe way.
See http://java.sun.com/developer/JDCTechTips/2003/tt1208.html.

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


		// Create the GUI (variable is final because used by inner class).
		final JFrame demo = new JFrameDemo();

		// Create a Runnable to set the main visible, and get Swing to invoke.
        EventQueue.invokeLater(new Runnable() {
			public void run() {
				demo.setVisible(true);
			}
		});