public void actionPerformed(ActionEvent e){
  boolean ok;
  int retVal;
  if (!checkModified())   return;
  retVal=m_FileChooser.showOpenDialog(FileScriptingPanel.this);
  if (retVal != JFileChooser.APPROVE_OPTION)   return;
  ok=m_Script.open(m_FileChooser.getSelectedFile());
  m_TextCode.setCaretPosition(0);
  if (!ok)   JOptionPane.showMessageDialog(FileScriptingPanel.this,"Couldn't open file '" + m_FileChooser.getSelectedFile() + "'!");
  notifyTitleUpdatedListeners(new TitleUpdatedEvent(FileScriptingPanel.this));
}

public void actionPerformed ( ActionEvent e ) { boolean ok ; int retVal ; if ( ! checkModified ( ) ) return ; retVal = m_FileChooser . showOpenDialog ( FileScriptingPanel . this ) ; if ( retVal != JFileChooser . APPROVE_OPTION ) return ; ok = m_Script . open ( m_FileChooser . getSelectedFile ( ) ) ; m_TextCode . setCaretPosition ( 0 ) ; if ( ! ok ) JOptionPane . showMessageDialog ( FileScriptingPanel . this , "Couldn't open file '" + m_FileChooser . getSelectedFile ( ) + "'!" ) ; notifyTitleUpdatedListeners ( new TitleUpdatedEvent ( FileScriptingPanel . this ) ) ; }
fired when action got executed .
