91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

本人JAVA結課作業(yè),絕對能用~~歡迎大家下載

資源截圖

代碼片段和文件信息

import?javax.swing.*;
import?javax.swing.event.*;
import?java.awt.*;
import?java.awt.event.*;
class?add?extends?Jframe?implements?ActionListener
{
JLabel?lab1=new?JLabel(“姓名:“);
JTextField?Name=new?JTextField();

JLabel?lab2=new?JLabel(“電話:“);
JTextField?Phone=new?JTextField();

JLabel?lab3=new?JLabel(“Email:“);
JTextField?Email=new?JTextField();

JLabel?lab4=new?JLabel(“地址:“);
JTextField?Address=new?JTextField();

JLabel?lab5=new?JLabel(“公司“);
JTextField?Company=new?JTextField();

JLabel?lab6=new?JLabel(“備注“);
JTextArea?Jarea=new?JTextArea();

JButton?button_ok=new?JButton(“確定“);
JButton?button_cancel=new?JButton(“取消“);

add()
{
this.settitle(“增加聯(lián)系人“);
this.setLayout(null);
this.add(lab1);
this.add(lab2);
this.add(lab3);
this.add(lab4);
this.add(lab5);
this.add(lab6);
this.add(button_ok);
this.add(button_cancel);
this.add(Name);
this.add(Phone);
this.add(Email);
this.add(Address);
this.add(Company);
this.add(Jarea);
lab1.setBounds(20205020);
lab2.setBounds(20555020);
lab3.setBounds(20?90?50?20);
lab4.setBounds(20?125?50?20);
lab5.setBounds(20?160?5020);
lab6.setBounds(20?1955020);
Name.setBounds(70?20?160?20);
Phone.setBounds(70?55?160?20);
Email.setBounds(709016020);
Address.setBounds(70?125?160?20);
Company.setBounds(7016016020);
button_ok.setBounds(50?250?60?20);
button_cancel.setBounds(140?250?60?20);
Jarea.setBounds(7019020050);
Jarea.setLineWrap(true);//設置可換行
??Jarea.setRows(3);
this.setBounds(1010300320);
this.setVisible(true);
//this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
button_ok.addActionListener(this);
button_cancel.addActionListener(this);
}
public?void?actionPerformed(ActionEvent?e1)
{
if(e1.getSource()==button_cancel)
{
//setVisible(false);
this.dispose();
}
if(e1.getSource()==button_ok)
{
//if(Name.getText()==““)
if(All.test_str(Name.getText())!=0)
{
JOptionPane.showMessageDialog(null“姓名不能為空!“);
return;
??}
??if(All.model.contains(Name.getText()))
{
JOptionPane.showMessageDialog(nullName.getText()+“已經(jīng)存在!!“);
??return;
}
??if(Email.getText().length()!=0?&&?Email.getText().contains(“@“)==false)
??{
?? JOptionPane.showMessageDialog(null“郵箱格式不正確!“);
??return;
}
Contact?c1=new?Contact(Name.getText()Phone.getText()Email.getText()Address.getText()Company.getText()Jarea.getText());
All.mylist1.add(c1);
All.model.addElement(c1.name);
All.mylist1.print();
JOptionPane.showMessageDialog(null“添加成功“);
this.dispose();//銷毀當前窗口,不能用System.exit(0),否則父窗口也會關閉
}
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????????750??2008-12-26?01:42??雷湘強_通訊錄\JAVA\1.txt

?????文件???????3539??2008-12-16?03:55??雷湘強_通訊錄\JAVA\add.class

?????文件???????2811??2008-12-16?03:47??雷湘強_通訊錄\JAVA\add.java

?????文件???????2601??2008-12-26?01:45??雷湘強_通訊錄\JAVA\AddressList.class

?????文件????????767??2008-12-26?01:45??雷湘強_通訊錄\JAVA\All.class

?????文件????????543??2008-12-26?01:45??雷湘強_通訊錄\JAVA\Contact.class

?????文件???????1765??2008-12-25?03:33??雷湘強_通訊錄\JAVA\edit.class

?????文件???????1188??2008-12-25?03:33??雷湘強_通訊錄\JAVA\edit.java

?????文件????????947??2008-12-26?00:44??雷湘強_通訊錄\JAVA\Message$1.class

?????文件???????5977??2008-12-26?01:45??雷湘強_通訊錄\JAVA\Message.class

?????文件???????9040??2008-12-26?01:20??雷湘強_通訊錄\JAVA\Message.java

?????文件???????8955??2008-12-25?16:07??雷湘強_通訊錄\JAVA\Message.java~1~

????..A..H.???????162??2008-12-25?15:30??雷湘強_通訊錄\JAVA\~$訊錄JAVA.doc

?????文件?????161280??2009-08-29?22:39??雷湘強_通訊錄\JAVA\通訊錄JAVA.doc

?????目錄??????????0??2009-08-29?22:39??雷湘強_通訊錄\JAVA

?????目錄??????????0??2009-05-27?19:43??雷湘強_通訊錄

-----------?---------??----------?-----??----

???????????????200325????????????????????16


評論

共有 條評論