public void FormActivate() {
   this.openWorldFileDirectory.setText(TSDomain.domain.worldFileName);
   this.openWorldFileDirectory.setText(
       UFileSupport.ExtractFilePath(TSDomain.domain.worldFileName));
   if (this.openWorldFileDirectory.getText().equals("")) {
     this.openWorldFileDirectory.setText(UFileSupport.GetCurrentDir());
   }
   this.extraMediaDirectoryEdit.setText(TSDomain.domain.options.extraMediaDirectory);
   this.exeDirectory.setText(UFileSupport.getExePathAndSeparator());
   this.windowsMediaDirectory.setText(UFileSupport.getWindowsMediaDirectory());
 }
 public void CloseClick(ActionEvent event) {
   String extraMediaDirectory = this.extraMediaDirectoryEdit.getText();
   if (!extraMediaDirectory.equals("") && !(new File(extraMediaDirectory).exists())) {
     UFileSupport.ShowMessage("The directory you specified does not exist.");
     return;
   }
   TSDomain.domain.options.extraMediaDirectory = extraMediaDirectory;
   // PDF PORT FIX: this.ModalResult = mrOK;
   // Not really needed as the dialog itself changes the domain.
   this.setVisible(false);
 }