public void closeAndDispose() {
   if (constructor != null) {
     constructor.closeAndDispose();
     constructor = null;
   }
 }
 public void setCurrentDirectory(String directory) {
   constructor.setCurrentDirectory(directory);
 }
 public void actionPerformed(ActionEvent e) {
   constructor.constructDialog();
 }
 public void setCurrentDirectory(File directory) {
   constructor.setCurrentDirectory(directory);
 }