serverstart.java
资源名称:QQ.rar [点击查看]
上传用户:hongdaled
上传日期:2007-10-03
资源大小:680k
文件大小:1k
源码类别:
ICQ/即时通讯
开发平台:
Java
- package server;
- import java.awt.Button;
- import java.awt.Frame;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.util.HashMap;
- public class serverstart {
- public static HashMap map=new HashMap();
- /**
- * @param args
- */
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- Frame f=new Frame("server");
- Button b=new Button("退出");
- f.add(b);
- f.setSize(200, 200);
- f.setVisible(true);
- serverthread st=new serverthread();
- System.out.println("sdafjasdhklfh");
- st.start();
- b.addActionListener(new ActionListener(){
- @Override
- public void actionPerformed(ActionEvent arg0) {
- // TODO Auto-generated method stub
- System.exit(0);
- }
- });
- // yanzheng_qq qq=new yanzheng_qq();
- // qq.start();
- // client_zhuce zhuce=new client_zhuce();
- // zhuce.start();
- }
- }