• 大小: 35KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-10
  • 语言: Java
  • 标签: java  

资源简介

自己做的,大家如果下载,请勿见笑!!我是个java初学者!!!!!!!!!!!

资源截图

代码片段和文件信息

/*
 * To change this template choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Clientframe.java
 *
 * Created on 2009-6-13 21:47:50
 */

package client;

import java.awt.event.ActionListener;
import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;
import javax.swing.JOptionPane;
/**
 *
 * @author Administrator
 */
public class Clientframe extends javax.swing.Jframe {
     public  PrintStream ps = null;
     public Socket s = null;

    public Clientframe() {
        super(“java聊天室--客户端“);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings(“unchecked“)
    // //GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        showTextArea = new javax.swing.JTextArea();
        loginButton = new javax.swing.JButton();
        exitButton = new javax.swing.JButton();
        postTextField = new javax.swing.JTextField();
        sendButton = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        loginMenuItem = new javax.swing.JMenuItem();
        IPMenuItem = new javax.swing.JMenuItem();
        portMenuItem = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        exitMenuItem = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        aboutMenuItem = new javax.swing.JMenuItem();

        jLabel2.setText(“发送消息:“);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        showTextArea.setColumns(20);
        showTextArea.setRows(5);

        loginButton.setText(“登  陆“);

        exitButton.setText(“退  出“);

        sendButton.setText(“发 送“);

        jLabel1.setText(“发送消息:“);

        jMenu1.setMnemonic(‘O‘);
        jMenu1.setText(“操作(O)“);

        loginMenuItem.setText(“登陆“);
        jMenu1.add(loginMenuItem);

        IPMenuItem.setText(“配置IP“);
        jMenu1.add(IPMenuItem);

        portMenuItem.setText(“配置端口“);
        jMenu1.add(portMenuItem);
        jMenu1.add(jSeparator1);

        exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X java.awt.event.InputEvent.CTRL_MASK));
        exitMenuItem.setMnemonic(‘X‘);
        exitMenuItem.setText(“退出(X)“);
        jMenu1.add(exitMenuItem);

        jMenuBar1.add(jMenu1);

        jMenu2.setMnemonic(‘H‘);
        jMenu2.setText(“帮助(H)“);

        aboutMenuItem.setMnemonic(‘A‘);
        aboutMenuItem.setText(“关于(A)“);
        jMenu2.add(aboutMenuItem);

        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getConten

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

     文件        582  2009-06-13 21:44  课程设计\nbproject\project.xml

     文件        258  2009-09-23 14:59  课程设计\nbproject\private\private.properties

     文件        211  2009-09-23 15:33  课程设计\nbproject\private\private.xml

     文件       1908  2009-06-23 16:27  课程设计\nbproject\project.properties

     文件      34077  2009-06-13 21:44  课程设计\nbproject\build-impl.xml

     文件        455  2009-06-13 21:44  课程设计\nbproject\genfiles.properties

     文件       3731  2009-06-13 21:44  课程设计\build.xml

     文件       7868  2009-06-24 02:53  课程设计\src\server\Serverframe.java

     文件       8735  2009-06-24 02:53  课程设计\src\server\Serverframe.form

     文件        704  2009-06-24 02:54  课程设计\src\server\ServerThread.java

     文件       1779  2009-06-24 15:40  课程设计\src\server\ServerListener.java

     文件       7531  2009-06-24 02:44  课程设计\src\client\Clientframe.java

     文件       9245  2009-06-24 02:44  课程设计\src\client\Clientframe.form

     文件       2006  2009-09-03 23:39  课程设计\src\client\ClientListener.java

     文件        799  2009-09-23 15:00  课程设计\src\client\ClientThread.java

     文件       2001  2009-09-03 23:39  课程设计\src\client\ClientListener.java.bak

     文件         85  2009-06-13 21:45  课程设计\manifest.mf

     文件       7236  2009-06-24 02:53  课程设计\build\classes\server\Serverframe.class

     文件       1355  2009-06-16 00:27  课程设计\build\classes\server\ServerThread_1.class

     文件        275  2009-06-23 17:56  课程设计\build\classes\server\ServerScoket.class

     文件        398  2009-06-23 18:09  课程设计\build\classes\server\ArrayList.class

     文件       1379  2009-06-24 02:54  课程设计\build\classes\server\ServerThread.class

     文件       2612  2009-06-24 15:40  课程设计\build\classes\server\ServerListener.class

     文件       6551  2009-06-24 02:52  课程设计\build\classes\client\Clientframe.class

     文件       1450  2009-09-23 15:00  课程设计\build\classes\client\ClientThread.class

     文件       2899  2009-06-24 10:43  课程设计\build\classes\client\ClientListener.class

     文件       2014  2009-06-24 00:26  课程设计\build\classes\client\ClientListener_1.class

     文件          0  2009-06-13 22:47  课程设计\build\classes\.netbeans_automatic_build

     目录          0  2009-06-13 22:47  课程设计\build\classes\课程设计

     目录          0  2009-06-13 22:47  课程设计\build\classes\server

............此处省略13个文件信息

评论

共有 条评论