全文预览

计算机网络TCP聊天室实验报告

上传者:叶子黄了 |  格式:docx  |  页数:30 |  大小:161KB

文档介绍
ed=false;?privateintport;?privateStringhost;?privateSockets;?privateDataInputStreamdis;?privateDataOutputStreamdos;?publicDataInputStreamgetDis(){ returndis;?}?publicDataOutputStreamgetDos(){ returndos;?}?privatefinalJPanelpanel=newJPanel();?privatefinalJPanelpnlChatArea=newJPanel();?privatefinalImageIconimageSetting=ImageManager.getIcon("setting.gif");?privatefinalJLabellblSettingImage=newJLabel(imageSetting);?privatefinalJPanelpnlSetting=newJPanel();?privatefinalJPanelpnlInputArea=newJPanel();?privatefinalJButtonbnClose=newJButton("关闭");?privatefinalJButtonbnSend=newJButton("发送");?privatefinalJTextAreatxtChatArea=newJTextArea(6,15);?privatefinalJTextAreatxtInputArea=newJTextArea(2,15);?privatefinalDimensionminDimension=newDimension(300,413); publicbooleanisConnected(){ returnconnected;?}

收藏

分享

举报
下载此文档