public TResource(TFolderResource parent, String name) { this.parent = parent; this.name = name; try { // modDate = new Date(); // createdDate = new Date(); createdDate = DateFormat.getDateInstance(DateFormat.SHORT).parse("1/1/2000"); modDate = DateFormat.getDateInstance(DateFormat.SHORT).parse("1/1/2005"); } catch (ParseException ex) { Logger.getLogger(TResource.class.getName()).log(Level.SEVERE, null, ex); } if (parent != null) { this.user = parent.user; this.password = parent.password; checkAndRemove(parent, name); parent.children.add(this); } }