public void actionPerformed(ActionEvent e){
  String m_value=m_text.getText();
  log.config(m_value);
  String fieldName=null;
  if (m_field != null)   fieldName=m_field.getHeader();
 else   fieldName=Msg.getElement(Env.getCtx(),m_columnName);
  JFileChooser chooser=new JFileChooser(m_value);
  chooser.setMultiSelectionEnabled(false);
  chooser.setFileSelectionMode(m_selectionMode);
  chooser.setDialogTitle(fieldName);
  chooser.setDialogType(m_dialogType);
  int returnVal=-1;
  if (m_dialogType == JFileChooser.SAVE_DIALOG)   returnVal=chooser.showSaveDialog(this);
 else   if (m_dialogType == JFileChooser.OPEN_DIALOG)   returnVal=chooser.showOpenDialog(this);
 else   returnVal=chooser.showDialog(this,fieldName);
  if (returnVal != JFileChooser.APPROVE_OPTION)   return;
  File selectedFile=chooser.getSelectedFile();
  m_text.setText(selectedFile.getAbsolutePath());
  try {
    fireVetoableChange(m_columnName,m_oldText,m_text.getText());
  }
 catch (  PropertyVetoException pve) {
  }
}

public void actionPerformed ( ActionEvent e ) { String m_value = m_text . getText ( ) ; log . config ( m_value ) ; String fieldName = null ; if ( m_field != null ) fieldName = m_field . getHeader ( ) ; else fieldName = Msg . getElement ( Env . getCtx ( ) , m_columnName ) ; JFileChooser chooser = new JFileChooser ( m_value ) ; chooser . setMultiSelectionEnabled ( false ) ; chooser . setFileSelectionMode ( m_selectionMode ) ; chooser . setDialogTitle ( fieldName ) ; chooser . setDialogType ( m_dialogType ) ; int returnVal = - 1 ; if ( m_dialogType == JFileChooser . SAVE_DIALOG ) returnVal = chooser . showSaveDialog ( this ) ; else if ( m_dialogType == JFileChooser . OPEN_DIALOG ) returnVal = chooser . showOpenDialog ( this ) ; else returnVal = chooser . showDialog ( this , fieldName ) ; if ( returnVal != JFileChooser . APPROVE_OPTION ) return ; File selectedFile = chooser . getSelectedFile ( ) ; m_text . setText ( selectedFile . getAbsolutePath ( ) ) ; try { fireVetoableChange ( m_columnName , m_oldText , m_text . getText ( ) ) ; } catch ( PropertyVetoException pve ) { } }
actionlistener - button - start dialog
