最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用javamail发邮件(含附件),用jBuilder3实现
时间:2022-07-02 18:11:27 编辑:袖梨 来源:一聚教程网
//Title: Your Product Name
//Version:
//Copyright: Copyright (c) 1999
//Author: Your Name
//Company: Your Company
//Description: Your description
package Mail;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SendMail extends Frame {
Label label1 = new Label();
TextField textField1 = new TextField();
Label label2 = new Label();
TextField textField2 = new TextField();
Label label3 = new Label();
TextArea textArea1 = new TextArea();
Label label4 = new Label();
TextField textField3 = new TextField();
Button button1 = new Button();
Button button2 = new Button();
public SendMail() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if(e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
public static void main(String[] args) {
SendMail sendMail1 = new SendMail();
sendMail1.setSize (400,400);
//Version:
//Copyright: Copyright (c) 1999
//Author: Your Name
//Company: Your Company
//Description: Your description
package Mail;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class SendMail extends Frame {
Label label1 = new Label();
TextField textField1 = new TextField();
Label label2 = new Label();
TextField textField2 = new TextField();
Label label3 = new Label();
TextArea textArea1 = new TextArea();
Label label4 = new Label();
TextField textField3 = new TextField();
Button button1 = new Button();
Button button2 = new Button();
public SendMail() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if(e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
public static void main(String[] args) {
SendMail sendMail1 = new SendMail();
sendMail1.setSize (400,400);
相关文章
- 原神蟹沙皇怎么打-蟹沙皇打法攻略 09-19
- 新三国志曹操传法正之影怎么过 法正之影过关攻略 09-19
- 三国望神州曹仁技能是什么 曹仁技能介绍一览 09-19
- DNF手游3月商店道具换什么好-2025年3月商店刷新道具兑换推荐 09-19
- 英雄联盟春暖行动被盗账号怎么找回-春暖行动账号被盗找回方法 09-19
- 和平精英恋语绒绒套装怎么获得-恋语绒绒套装免费获取方法 09-19