Package net.suberic.pooka.gui

Examples of net.suberic.pooka.gui.NewMessageProxy$SelectSMIMEBoth


  public void run() {
    try {
      getLogger().log(Level.FINE, "creating new message.");
      // create the template first.  this is done so the new message
      // opens as a top-level window.
      NewMessageFrame template = new NewMessageFrame(new NewMessageProxy(new NewMessageInfo(new MimeMessage(Pooka.getDefaultSession()))));

      MimeMessage mm = new MimeMessage(Pooka.getDefaultSession());
      if (fAddress != null)
        mm.setRecipients(Message.RecipientType.TO, fAddress);

      NewMessageInfo info = new NewMessageInfo(mm);
      if (fProfile != null)
        info.setDefaultProfile(fProfile);

      NewMessageProxy proxy = new NewMessageProxy(info);

      MessageUI nmu = Pooka.getUIFactory().createMessageUI(proxy, template);
      nmu.openMessageUI();
    } catch (OperationCancelledException oce) {
    } catch (MessagingException me) {
View Full Code Here

TOP

Related Classes of net.suberic.pooka.gui.NewMessageProxy$SelectSMIMEBoth

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.