tn5250j/src/org/tn5250j/keyboard/actions QuickEmailAction.java,NONE,1.1

[email protected]
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/keyboard/actions
In directory sc8-pr-cvs1:/tmp/cvs-serv29038/src/org/tn5250j/keyboard/actions

Added Files:
	QuickEmailAction.java 
Log Message:
Update related to quick-email-feature

--- NEW FILE: QuickEmailAction.java ---
/**
 * Title: QuickEmailAction.java
 * Copyright:   Copyright (c) 2001,2002
 * Company:
 * @author  Kenneth J. Pouncey
 * @version 0.5
 *
 * Description:
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this software; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307 USA
 *
 */
package org.tn5250j.keyboard.actions;

import java.awt.event.KeyEvent;
import javax.swing.KeyStroke;
import java.awt.event.ActionEvent;
import javax.swing.SwingUtilities;
import javax.swing.JFrame;

import org.tn5250j.TN5250jConstants;
import org.tn5250j.Session;
import org.tn5250j.keyboard.KeyMapper;
import org.tn5250j.mailtools.SendEMailDialog;

/**
 * Quick Email Action
 */
public class QuickEmailAction extends EmulatorAction implements TN5250jConstants {

   public QuickEmailAction(Session session, KeyMapper keyMap) {
      super(session,
            MNEMONIC_QUICK_MAIL,
            KeyStroke.getKeyStroke(KeyEvent.VK_S,KeyEvent.ALT_MASK),
            keyMap);

   }

   public void actionPerformed(ActionEvent e) {

      Runnable emailIt = new Runnable() {
         public void run() {
            new SendEMailDialog((JFrame)SwingUtilities.getRoot(session),
                  session,false);
         }

      };

      SwingUtilities.invokeLater(emailIt);

   }
}



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.