資源簡介
用java實現的簡單地網絡競價拍賣軟件
采用Eclipse軟件進行編程,代碼量900,另有報告,需要者另聯系。由于本人的能力有限,其中的缺陷及不足敬請見諒

代碼片段和文件信息
import?java.awt.*;
import?java.awt.event.*;
import?java.net.ServerSocket;
import?java.util.ArrayList;
import?javax.net.ssl.SSLContext;
import?javax.swing.*;
public?class?AcutionServer?extends?Jframe?implements?ActionListener{
????String?winner?=?“NO?user“;
????int?salePrice?=?40;
int?nameID=0;
JPanel?jp?=?new?JPanel();
????
????JLabel?lowPrice?=?new?JLabel(“起價40?RMB¥“);
????
????JButton[]?jba?=?{
???? new?JButton(“下一件“)
???????? new?JButton(“競拍“)
???????? new?JButton(“退出“)
????};
????
????CardLayout?cl?=?new?CardLayout();
????
????JLabel?userOlineJLabel?=?new?JLabel(“競拍記錄“);
????JTextArea?text?=?new?JTextArea();
????JScrollPane?acutionLogSp?=?new?JScrollPane(text);
????
????JLabel?lastPricelb?=?new?JLabel(“成交價格?:“);
????JLabel?lastUserlb?=?new?JLabel(“成交用戶??:“);
????
????JLabel?countDown?=?new?JLabel(“拍賣倒數計時“);
????JTextField?timeJf?=?new?JTextField();
????
????JTextField?lastPriceTf?=?new?JTextField();
????JTextField?lastUserTf?=?new?JTextField();
????
????JLabel?onlineUserLb?=?new?JLabel(“在線用戶“);
????JList?onlineUserTa?=?new?JList();
????JScrollPane?onlineUserJp?=?new?JScrollPane(onlineUserTa);
????
????JLabel?userQ?=?new?JLabel(“用戶咨詢服務端“);
????JTextArea?questLoge?=?new???JTextArea();
????JScrollPane?questJp?=?new?JScrollPane(questLoge);
????JTextArea?answerJa?=?new?JTextArea();
????JScrollPane?answerJPane?=?new?JScrollPane(answerJa);
????JButton?answerOK?=?new?JButton(“發送“);
????
????ServerTread?st;
????CountThread?ct;
????ServerSocket?ss;
????ArrayList?alOnline?=?new?ArrayList();
public?AcutionServer(){
this.settitle(“競價拍賣系統?服務器端????V0.01“);
this.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
this.setBounds(2020600800);
this.setVisible(true);
this.setLayout(null);
this.setState(false);
acutionLogSp.setBounds(29045250280);
this.add(acutionLogSp);
userOlineJLabel.setBounds(3302010020);
this.add(userOlineJLabel);
lastPricelb.setBounds(33036010020);
this.add(lastPricelb);
lastPriceTf.setBounds(40036010025);
lastPriceTf.setEditable(false);
this.add(lastPriceTf);
lastUserlb.setBounds(33040010020);
this.add(lastUserlb);
lastUserTf.setBounds(40040010025);
lastUserTf.setEditable(false);
this.add(lastUserTf);
onlineUserLb.setBounds(20460100?20?);
this.add(onlineUserLb);
onlineUserJp.setBounds(20?490?250?260);
this.add(onlineUserJp);
userQ.setBounds(29046010020);
this.add(userQ);
questJp.setBounds(290490250100);
questLoge.setEditable(false);
this.add(questJp);
answerJPane.setBounds(290600250100);
this.add(answerJPane);
answerOK.setBounds(3507208030);
this.add(answerOK);
answerOK.addActionListener(this);
countDown.setBounds(2040010020);
this.add(countDown);
timeJf.setBounds(15040010030);
timeJf.setEditable(false);
this.add(timeJf);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-03-29?23:56??AcutionServer\
?????文件?????????301??2010-03-29?23:56??AcutionServer\.classpath
?????文件?????????389??2010-03-29?23:56??AcutionServer\.project
?????目錄???????????0??2010-03-29?23:56??AcutionServer\.settings\
?????文件?????????629??2010-03-29?23:56??AcutionServer\.settings\org.eclipse.jdt.core.prefs
?????文件???????13016??2010-04-11?13:18??AcutionServer\1.jpg
?????文件????????7782??2010-04-14?23:33??AcutionServer\2.jpg
?????文件???????12585??2010-04-11?13:18??AcutionServer\3.jpg
?????目錄???????????0??2010-03-29?23:56??AcutionServer\bin\
?????文件???????13016??2010-04-11?13:18??AcutionServer\bin\1.jpg
?????文件????????7782??2010-04-14?23:33??AcutionServer\bin\2.jpg
?????文件???????12585??2010-04-11?13:18??AcutionServer\bin\3.jpg
?????文件????????1605??2010-04-18?21:11??AcutionServer\bin\AcutionServer$1.class
?????文件????????6694??2010-04-18?21:11??AcutionServer\bin\AcutionServer.class
?????文件????????1254??2010-04-19?23:38??AcutionServer\bin\ClientServer$1.class
?????文件????????6847??2010-04-19?23:38??AcutionServer\bin\ClientServer.class
?????文件????????4596??2010-04-18?21:11??AcutionServer\bin\ClientThread.class
?????文件?????????776??2010-04-18?21:11??AcutionServer\bin\Count.class
?????文件????????3065??2010-04-18?21:11??AcutionServer\bin\CountThread.class
?????文件?????????687??2010-04-18?21:11??AcutionServer\bin\MySale.class
?????文件?????????709??2010-04-19?23:38??AcutionServer\bin\Sale.class
?????文件?????????973??2010-04-18?21:11??AcutionServer\bin\ServerTread.class
?????文件????????5175??2010-04-18?21:11??AcutionServer\bin\SeverAgentTread.class
?????目錄???????????0??2010-03-29?23:56??AcutionServer\src\
?????文件???????13016??2010-04-11?13:18??AcutionServer\src\1.jpg
?????文件????????7782??2010-04-14?23:33??AcutionServer\src\2.jpg
?????文件???????12585??2010-04-11?13:18??AcutionServer\src\3.jpg
?????文件????????6070??2010-04-18?02:50??AcutionServer\src\AcutionServer.java
?????文件????????6825??2010-04-19?23:38??AcutionServer\src\ClientServer.java
?????文件????????3786??2010-04-18?10:50??AcutionServer\src\ClientThread.java
?????文件????????2205??2010-04-18?10:59??AcutionServer\src\CountThread.java
............此處省略2個文件信息
- 上一篇:JTable 動態添加數據
- 下一篇:JSP期末考試試題及答案
評論
共有 條評論