if(filenameField.getText() == null)
if(filenameField.getText().length() == 0)
	public void ok()	{		if(filenameField != null)		{			if(filenameField.getText() == null)			{				getToolkit().beep();				return;			}		}		else		{			VFS.DirectoryEntry[] files = browser.getSelectedFiles();			if(files.length == 0)				return;			for(int i = 0; i < files.length; i++)			{				VFS.DirectoryEntry file = files[i];				if(file.type == VFS.DirectoryEntry.FILESYSTEM					|| file.type == VFS.DirectoryEntry.DIRECTORY)				{					// the browser will list the directory					// in question, so just return					return;				}			}		}		isOK = true;		dispose();	}