freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于java的局域網(wǎng)聊天系統(tǒng)-在線瀏覽

2025-08-10 07:08本頁(yè)面
  

【正文】 static VectorClientProc clients。 JLabel lblStatus,lblNumber,lblMax,lblServerName,lblIP,lblPort,lblLog。 JButton btnStop,btnSaveLog。 JTabbedPane tpServer。接口說(shuō)明:類名ClientProc類的作用服務(wù)器主功能模塊 負(fù)責(zé)實(shí)現(xiàn)服務(wù)器主要功能 調(diào)用其他功能模塊類定義與實(shí)現(xiàn):成員說(shuō)明: Socket s。 PrintWriter out。 private String sex = null。接口說(shuō)明:客戶端類名Connect類的作用客戶端登錄功能模塊,實(shí)現(xiàn)與服務(wù)器連接,并進(jìn)入聊天室類定義與實(shí)現(xiàn):成員說(shuō)明: private static final long serialVersionUID = 1L。//套接字 private String hostName = localhost。 private JLabel nameLabel。 private JRadioButton boyRadio,girlRadio,secretRadio。 // 標(biāo)示用戶性別信息 private JLabel hostLabel。 private JTextField hostText。 private JButton cancell。 private Container c。 private PrintWriter out。 // 放輸入組件的容器 private JComboBox fontName = null, fontSize = null, fontStyle = null, fontColor = null,sendings=null。 // 字體名稱。文字樣式。傳送 private StyledDocument doc = null。 private JTextPane monArea=null。//我的頻道發(fā)言區(qū) public JComboBox perponsComboBox。 //發(fā)言輸入框 private JCheckBox privateTalk。 //是否是私聊,默認(rèn)值為假 private JButton sentButton。//截屏按鈕 private JButton save。 private JMenuItem cMenuItem。 public PrintWriter out。 private String withWho = 所有人。//發(fā)送的信息 String mywords。 JScrollPane monAreaScroll。 JScrollPane inMsgFieldScroll。 //*********************聊天室頂層**************// JPanel upperPanel = new JPanel()。 String[] str_Size = { 12, 14, 18, 22, 30, 40 }。 String[] str_Color = { 黑色, 紅色, 藍(lán)色, 黃色, 綠色 }。 fontName = new JComboBox(str_name)。 // 字號(hào) fontStyle = new JComboBox(str_Style)。 // 顏色 sendings = new JComboBox(str_sendings)。 private JList peopleList。//刷新列表按鈕 public DefaultListModel listModel。接口說(shuō)明:類名PopupListener類的作用客戶端聊天室功能模塊,私聊時(shí)顯示對(duì)方昵稱 類定義與實(shí)現(xiàn):成員說(shuō)明: 接口說(shuō)明:JPopupMenu popup。 } public void mousePressed(MouseEvent e) { maybeShowPopup(e)。 } private void maybeShowPopup(MouseEvent e) { if (()) { ((), (), ())。 private JButton start,cancel。 private BufferedImage get。//一個(gè)放置很多份圖片 private int index。//JAVA界面,系統(tǒng)界面 接口說(shuō)明:類名RTFReceive類的作用客戶端聊天室接收文件功能模塊 類定義與實(shí)現(xiàn):成員說(shuō)明: private File receiveFile。 public RTFReceive(File receiveFile, Socket socket) { = receiveFile。 接口說(shuō)明:類名RTFReceive類的作用客戶端聊天室接收文件功能模塊 類定義與實(shí)現(xiàn):成員說(shuō)明: private JFileChooser jfc。 // private ServerSocket ss。 private JButton btnAccept。接口說(shuō)明:類名RTFReceive類的作用客戶端聊天室接收文件功能模塊 類定義與實(shí)現(xiàn):成員說(shuō)明: private File sendFile。 private Socket socket。 private DataOutputStream bout。接口說(shuō)明:類名DateDeal類的作用獲取當(dāng)前日期功能模塊 類定義與實(shí)現(xiàn):成員說(shuō)明: private File sendFile。 private Socket socket。 private DataOutputStream bout。接口說(shuō)明:/** * 將當(dāng)前日期返回yyyyMMdd的字符串表現(xiàn)形式。 */ public static String getCurrentDate(){ SimpleDateFormat df = new SimpleDateFormat(yyyyMMdd)。 } /** * 將當(dāng)前日期返回yyyy年MM月dd日 HH:mm:ss的字符串表現(xiàn)形式。 */ public static String getCurrentTime(){ SimpleDateFormat df = new SimpleDateFormat(yyyy39。MM39。dd39。 HH:mm:ss)。 } /** * 將Date的日期返回yyyyMMdd HH:mm:ss的字符串表現(xiàn)形式。 * return 返回yyyyMMdd HH:mm:ss的字符串表現(xiàn)形式。 return (date)。 * param date Date對(duì)象。 */ public static String getDate2(Date date){ GregorianCalendar g1 = new GregorianCalendar()。 GregorianCalendar g2 = new GregorianCalendar()。 SimpleDateFormat df = null。amp。amp。 else df = new SimpleDateFormat(yyyyMMdd HH:mm:ss)。 try { // 使用Windows的界面風(fēng)格 ()。 } try { // 使用Windows的界面風(fēng)格 ()。 } myName = host。 //*********************聊天室頂層**************// JPanel upperPanel = new JPanel()。 String[] str_Size = { 12, 14, 18, 22, 30, 40 }。 String[] str_Color = { 黑色, 紅色, 藍(lán)色, 黃色, 綠色 }。 fontName = new JComboBox(str_name)。 // 字號(hào) fontStyle = new JComboBox(str_Style)。 // 顏色 sendings = new JComboBox(str_sendings)。 // 豎結(jié)構(gòu) Box box_1 = ()。 // 橫結(jié)構(gòu) (box_1)。 // 8個(gè)的邊距 // 開(kāi)始將所需組件加入容器 (new JLabel(字體:))。 // 加入組件 ((8))。 (fontStyle)。 (new JLabel(字號(hào):))。 ((8))。 (fontColor)。 (new JLabel(傳送: ))。 ((8))。 //**************中間聊天室兩個(gè)窗口***********************// Border brd = (//邊框修飾色 2, 2, 2, 1, new Color(125,161,253))。 monArea = new JTextPane()。 (false)。 monAreaScroll = new JScrollPane(monArea)。//設(shè)置滾動(dòng)條什么時(shí)候出現(xiàn) ( )。 (monAreaScroll)。 myMsgArea = new JTextPane()。 (false)。 ()。 ((悄悄話))。 (box_2)。 JPanel tempPanel1 = new JPanel(new BorderLayout())。 JLabel withWho = new JLabel(對(duì))。 (所有人)。 inMsgField = new JTextArea(2,2)。 (new Color(248,243,209))。 sentButton = new JButton(發(fā)送)。 save = new JButton(聊天記錄)。 ()。 (inMsgFieldScroll,)。 (withWho)。 (privateTalk)。 (new JLabel( ))。 (sentButton)。 (tempPanel2,)。 //********************** 最下面的面板(South)*****************// JLabel BordBottomLabel = new JLabel()。 (BordBottom)。 (centerPanel,)。 (this)。//監(jiān)聽(tīng)截屏命令 (this)。//監(jiān)聽(tīng)下拉菜單 (this)。//監(jiān)聽(tīng)多選框狀態(tài) ()。 (null)。 (new WindowAdapter(){ //匿名類 監(jiān)聽(tīng)窗口關(guān)閉時(shí)間 public void windowClosing(WindowEvent event) { shutDown()。 (true)。 menuItem = new JMenuItem(清空群聊區(qū)信息)。 (menuItem)。 (this)。 //Add listener to the text area so the popup menu can e up. MouseListener popupListener = new PopupListener(popup)。 (popupListener)。 = out。 ()。 while (true){ try{ if((inmsg=()) != null){ //已經(jīng)在聊天室里的人顯示到列表中 if ((old)){//判斷INMSG是不是以old開(kāi)頭 String[] us
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1