您的位置:首页 >> 编程开发 >> Java >> Java基础 >> Eclipse >> 正文
RSS
 

Eclipse简介和插件开发

http://www.rdxx.com 04年12月06日 12:12 Blog 我要投稿

关键词: 插件 , Eclipse , 开发 , IP

            this.setContentPane(getJTextPane());
            //取得所有的新邮件信息
            String s= getAllMailInfo();            
            //将信息显示在对话框中
            this.jTextPane .setText(s);
           
            this.setTitle("邮件信息");
            this.setSize(251, 100);
        } 
        catch (Exception e)
        {           
         //发生错误显示错误信息
          this.jTextPane .setText(e.toString());
            e.printStackTrace();
        }
        
    }
    /**取得所有的邮箱的需要监控的邮件信息
 * 
 * @return String 
 */
    private String getAllMailInfo()
    {
     String allMailInfo="";
    
     if (mc.length <1)
     allMailInfo="没有配置邮箱!";
     else
     {
     for(int i=0;i<mc.length;i++)
     {
     //循环获取每个邮箱的邮件信息
     allMailInfo=allMailInfo+getMailInfo(mc[i]);
     }
     }
     //还没有收到相关的邮件
     if (allMailInfo.trim().length() ==0)
     allMailInfo="未检测到相关新邮件!";
     return allMailInfo;
    
    }
    /*
     *得到一个邮箱中满足条件的所有新邮件的字符串形式
     **/
    private String getMailInfo(MailConfig mc)
    {
      //最终输出的邮件信息
        String mailInfo="";
    
        //每个邮箱服务器上的Store和Folder对象
     Store store=null;
共14页  1 2 3 4 5 6 7 8 9 10 11 12 13 14

 
 
标签: 插件 , Eclipse , 开发 , IP 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站