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

正文內(nèi)容

java課程設(shè)計(jì)---局域網(wǎng)的聊天和文件傳輸-在線瀏覽

2024-07-24 18:35本頁面
  

【正文】 ()。 5 note(文件 + (i) + 正在接收 )。 String str = new String(dataAccepter,0,j)。 break。 }} ()。 ()。 ()。 (true)。 String dir = () + ()。i ()。 } } if(repeat == false){ File file = new File(dir)。 (() + 長度 : + ())。 (())。 }} } 主要類 圖 圖 線程 類 圖 7 圖 主類 test1 類 圖 系統(tǒng) 流程 圖 系統(tǒng)流程 開始 結(jié)束 創(chuàng)建對話框 對各組件監(jiān)聽行 創(chuàng)建聊天服務(wù)器 創(chuàng)建文件服務(wù)器 進(jìn)行聊天 進(jìn)行文件傳 請求文件發(fā)送 選擇聊天對象 8 4 具體代碼實(shí)現(xiàn) (主要源代碼 ) import .*。 import .*。 import .*。 import .*。 public class test1 extends JFrame { public int DEFAULT_DATASIZE = 1024 * 10。 boolean flag = false。 private JTextArea showmessage = new JTextArea()。 private JButton toolFontButton。 private JButton button。 private JButton button_2。 private JButton button_4。 private JButton button_6。 private Image bottoml = ()。 private TexturePaint bottomcPaint = (bgbottomc)。 DefaultListModel clientCarryer = new DefaultListModel()。 MyVector acceptNameCarryer = new MyVector()。 MyVector fileLength = new MyVector()。 JList JList1 = new JList(clientCarryer)。 Dimension screenSize。 Socket socket = new Socket()。 InputStream clientin=null。 InputStream serverin=null。 FileOutputStream fos= null。 private JScrollPane rightscroll = new JScrollPane(JList1)。 private JScrollPane bottomscroll = new JScrollPane(sendmessage)。 test1() { setBounds(100,100,542,512)。 ()。 (387)。 (false)。 (new TitledBorder(null, , , , null, null))。// 將分割面版添加到上級(jí)容器中 */ JPanel Leftpanel = new JPanel()。 (Leftpanel)。 (new Dimension(0, 300))。 (false)。 (new TitledBorder(null, , , , null, null))。 (chatLabel,)。 (Toppanel,)。 (new BorderLayout())。 JPanel toolpanel = new JPanel()。 (new GridLayout(1,0))。 (toolpanel,)。 (toolFontButton)。 (toolFaceButton)。 (button)。 (button_1)。 (button_2)。 (button_3)。 } })。 (button_4)。 (button_5)。 (button_6)。 (new MouseAdapter() { public void mouseClicked(MouseEvent evt) { JList1 = (JList)()。 )。 IAddress address = ((String)(()))。 (socketAddress)。 clientout = ()。 flag=true。 new chatrecieve().start()。 12 setTitle(正在和 +()+聊天 )。 note(連接 +()+失敗 )。 else { str = ().toString()。 ()。 ()。 (true)。 ISocketAddress socketAddress = new ISocketAddress(address, 7777)。 clientin= ()。 (true)。 note(連接 +()+成功! )。 ()。 } } } catch (IOException ee) { (null,對方不在線,請稍后再試!)。 setTitle()。 (new TitledBorder(null, , , , null, null))。 JButton sendButton = createButton(/)。 (new ActionListener(){ public void actionPerformed(ActionEvent e){ String s = ()。 if(flag) { (())。 ()。 ()。 } catch (IOException ev) { ()。 (new FlowLayout(,1,1))。 (submitButton)。 (new ActionListener(){ public void actionPerformed(ActionEvent ep){ (0)。 JPanel listpanel = new JPanel()。 (listpanel)。 JPanel righttop = new JPanel()。 (new BorderLayout())。 (righttop,)。 (false)。 (Txt,)。 JLabel listLabel = new JLabel(成員列表 :)。 JPanel rightbuttom = new JPanel()。 (rightbuttom,)。 JButton filebutton = new JButton(文件發(fā)送按鈕 )。 (new ActionListener(){ public void actionPerformed(ActionEvent event){ if(() == 1){ (null,請選擇一名用戶! )。 } else{ new fileSender().start()。 addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent event1){ if(flag){ try{ (over.getBytes())。 } catch(Exception eventb){ } } try{ (over.getBytes())。 } catch(Exception eventa){ } }})。 new chatServer().start()。 setDefaultCloseOperation()。 } 16 private JPanel sendpanel = new JPanel() { Override protected void paintComponen
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1