⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 emailtimer.java

📁 这是一个用jsp+Oracle开发的联系人客户关系管理系统!
💻 JAVA
字号:
package com.ideas.communicate;

import com.ideas.alert.*;
import java.awt.event.*;
import com.ideas.util.*;

public class EmailTimer implements ActionListener
{
	/**设置定时器*/
	javax.swing.Timer timer = new javax.swing.Timer(Configuration.PageRefreshRate, this);
	public EmailTimer()
	{
		if(AlertProperties.success && Configuration.MAILFlag)
		{
			timer.start();
			System.out.println("电子邮件报警程序启动。");
		}
	}

	public void actionPerformed(ActionEvent e)
	{
		for(int i = 0; i < Alert.HtmlContent.length; i++)
		{
			String msg = Alert.HtmlContent[i];
			if(msg != null)
			{
				new EmailTeller("预警系统警报", msg, Configuration.MAILRcptAddress).start();
			}
		}

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -