if (instance==null) instance=new MainFrame();
if (instance==null) throw new IllegalStateException();
	static MainFrame getInstance()	{		if (instance==null)			instance=new MainFrame();		return instance;	}