public void actionPerformed( ActionEvent e )
  {
    Object sender = e.getSource() ;
    if ( sender == langButton )
    {
      showLanguageDialog() ;
    }
    else if ( sender == closeButton )
    {
      makeResult() ;
      this.setModalResult( TInternalDialog.MR_OKAY ) ;
    }
    else if ( sender == cancelButton )
    {
      this.setModalResult( TInternalDialog.MR_CANCEL ) ;
    }

    else if ( sender == filenameButton )
    {
      if ( project != null )
      {
        if ( dirChooser != null )
        {
          dirChooser.setDialogTitle( "add a language file" ) ;
          dirChooser.setFileSelectionMode( JFileChooser.FILES_ONLY ) ;
          if ( dirChooser.showOpenDialog( this ) == JFileChooser.APPROVE_OPTION )
          {
            File file = dirChooser.getSelectedFile() ;

            if ( checkFileAllowed( file ) )
            {
              // filenameField.setText( file.getName() );
              //languageFile = project.getProjectData().getAvailableLangs().createFileHandle( file ) ;
              filenameField.setText(file.getName());
            }
            else
            {
              filenameField.setText( "" ) ;
            }
          }
        }
        else
        {
          System.out.println( "no chooser" ) ;
        }
      }
      else
      {
        System.out.println( "no project" ) ;
      }
    }

  }