try { pathDirs.mkdirs(); } catch(Exception e) { logger.error("Error creating default directory " + defaultCSVPath, e); }
    public InventoryUIFrame() {	super("Inventory GUI");	addWindowListener(new WindowAdapter() {				public void windowClosing(WindowEvent e) { System.exit(0); }	    });	parser = new InventoryXMLParser();	logger = Logging.getLogger(this);	contentPane = getRootPane().getContentPane();		String baseDir = System.getProperty("org.cougaar.workspace");	if((baseDir == null) ||	   (baseDir.trim().equals(""))) {	    baseDir = System.getProperty("org.cougaar.install.path");	    baseDir = baseDir + File.separator + "workspace";	}	defaultCSVPath = baseDir + File.separator + "INVGUICSV" + File.separator + formatTimeStamp(new Date(),false) + File.separator; 	File pathDirs = new File(defaultCSVPath);	try {	    pathDirs.mkdirs();	}	catch(Exception e) {	    logger.error("Error creating default directory " + defaultCSVPath, e);	}		fileChooser = new JFileChooser(pathDirs);	// fills frame	doMyLayout();	dataSource=null;	pack();	setSize(800,600);	Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();	// set location to middle of the screen	setLocation(screenSize.width/2 - (int)this.getSize().getWidth()/2,		    screenSize.height/2 - (int)this.getSize().getHeight()/2);	setVisible(true);    }