• 大小: 36KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-04
  • 标签: java  ATM  socket  线程  

资源简介

用java实现的ATM机功能.主要对线程和socket有很好的使用.对于正在学习java初学者来说是个不错的例子. 与客户端要结合运行.

资源截图

代码片段和文件信息

package atm_server_lj52boy;

import java.awt.Button;
import java.awt.Color;
import java.awt.Font;
import java.awt.frame;
import java.awt.Label;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.IOException;



public class ATM_Server_Main extends frame{
Thread_Server st;
ATM_Server_Main frame = this;
Label lbl_Message = new Label(““);
Button btn_Login = new Button(“开启服务器“);
Button btn_Exit = new Button(“关闭服务器“);
/**
 * @param args
 */
 
public ATM_Server_Main(){
this.addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent e) {
System.out.println(“服务器停止!“);
System.exit(0);
}
pu

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        514  2009-02-26 11:09  LI_JAVA_ATM_SERVER\.project

     文件        232  2009-01-15 10:20  LI_JAVA_ATM_SERVER\.classpath

     文件       2501  2009-03-29 14:16  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy\ATM_Server_Main.java

     文件        728  2009-03-29 14:16  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy\User.java

     文件       1709  2009-03-29 14:19  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy\User_Manage.java

     文件       1013  2009-03-29 14:16  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy\Thread_Server.java

     文件       1119  2009-03-29 14:21  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy\Thread_GetClient.java

     文件       3727  2009-03-29 14:23  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy\User_Deal.java

     目录          0  2009-02-26 19:22  LI_JAVA_ATM_SERVER\src\atm_server_lj52boy

     目录          0  2009-02-26 19:22  LI_JAVA_ATM_SERVER\src

     文件      11498  2009-01-15 13:34  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\ATM_UML2.umr

     文件      11466  2009-01-14 19:01  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\ATM_UML2.umr~

     文件       1025  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\ATM_Server_Main$1.class

     文件       2298  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\ATM_Server_Main.class

     文件       1223  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\ATM_Server_Main$3.class

     文件       1227  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\ATM_Server_Main$2.class

     文件       1478  2009-03-29 14:21  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\Thread_GetClient.class

     文件       1627  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\Thread_Server.class

     文件       1347  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\User.class

     文件       3639  2009-03-29 14:23  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\User_Deal.class

     文件       2633  2009-03-29 14:19  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy\User_Manage.class

     目录          0  2009-03-29 14:16  LI_JAVA_ATM_SERVER\bin\atm_server_lj52boy

     目录          0  2009-02-26 19:22  LI_JAVA_ATM_SERVER\bin

     目录          0  2009-02-26 19:22  LI_JAVA_ATM_SERVER

     文件         48  2009-03-29 14:02  帐号文件.txt

     文件         61  2009-03-29 18:50  说明.txt

----------- ---------  ---------- -----  ----

                51113                    26


评论

共有 条评论