Object source = evt.getSource(); if(source == ok) ok(); else if(source == cancel) cancel();
if(evt.getSource() == ok) isOK = true;  dispose();
		public void actionPerformed(ActionEvent evt)		{			Object source = evt.getSource();			if(source == ok)				ok();			else if(source == cancel)				cancel();		}