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

正文內(nèi)容

基于javase即時(shí)系統(tǒng)實(shí)習(xí)報(bào)告-文庫(kù)吧

2025-06-03 14:37 本頁(yè)面


【正文】 ),())。 updateUsers()。 (users)。 (【+()+ 】上線了!【+new SimpleDateFormat(yyyy年MM月dd日 HH小時(shí)mm分ss秒).format(())+】)。 sendMsg(msg)。//給每個(gè)用戶發(fā)送消息 //msg服務(wù)器端處理業(yè)務(wù)后封裝的一個(gè)Message對(duì)象 }else if(loginOut.equals(type)){ //斷開(kāi)請(qǐng)求 //更新服務(wù)器端用戶列表 (())。 (【+()+ 】下線了!【+new SimpleDateFormat(yyyy年MM月dd日 HH小時(shí)mm分ss秒).format(())+】)。 (users)。 sendMsg(msg)。 (s)。 updateUsers()。 break。 }else if(send.equals(type)){ //發(fā)送消息 String str=【+()+說(shuō)】:+ ()+【+new SimpleDateFormat(yyyy年MM月dd日 HH小時(shí)mm分ss秒).format(())+】\n。 (str)。 sendMsg(msg)。 }else if(personal.equals(type)){ //私聊...... (serverpersonal)。 (【+()+ 】請(qǐng)求與你會(huì)話【+new SimpleDateFormat(yyyy年MM月dd日 HH小時(shí)mm分ss秒).format(())+】)。 sendMsg(msg)。 }else if(personalSend.equals(type)){ (serverpersonalSend)。 String str=【+()+說(shuō)】:+ ()+【+new SimpleDateFormat(yyyy年MM月dd日 HH小時(shí)mm分ss秒).format(())+】\n。 (str)。 sendMsg(msg)。 } } catch (IOException e) { // TODO Autogenerated catch block ()。 } catch (ClassNotFoundException e) { // TODO Autogenerated catch block ()。 } } } }.start()。 } catch (IOException e) { ()。 } } } public static void main(String[] args) { Server server=new Server()。 ()。//啟動(dòng)服務(wù)器端 }}//客戶端程序public class Client implements ActionListener{ JFrame jf=new JFrame(西安工業(yè)大學(xué)電信四班聊吧!?。?!)。 //north JPanel north=new JPanel()。 JMenuBar jmb=new JMenuBar()。 JMenu connect=new JMenu(connect)。 JMenu about=new JMenu(about)。 JMenuItem jmi1=new JMenuItem(連接服務(wù)器)。 JMenuItem jmi2=new JMenuItem(斷開(kāi)服務(wù)器)。 JMenuItem jmi3=new JMenuItem(退出)。 JMenuItem jmi4=new JMenuItem(關(guān)于小組)。 ImageIcon loginImage= new ImageIcon( ())。 JLabel jl1=new JLabel(loginImage)。 //west JPanel west=new JPanel()。 ImageIcon westImage=new ImageIcon( ())。 JLabel jl2=new JLabel(westImage)。 DefaultListModel dlm=new DefaultListModel()。 JList userList=new JList(dlm)。 JScrollPane jsp=new JScrollPane(userList)。 //center JPanel center=new JPanel()。 JTextArea jta=new JTextArea()。 JScrollPane jsp1=new JScrollPane(jta)。 JLabel jl3=new JLabel(請(qǐng)輸入消息:)。 JTextField jtf=new JTextField(40)。 JButton send=new JButton(發(fā)送)。 Socket s。 ObjectOutputStream oos。 String userName=游客。 String toName。 Message msg。 JTextArea jta1=new JTextArea()。 JFrame jf2。 JTextArea jta2=new JTextArea()。 JScrollPane jsp2=new JScrollPane(jta2)。 public void startClient(){ //初始化界面 initFrame()。 //添加監(jiān)聽(tīng)事件 addListener()。 }public void initFrame(){ (new BorderLayout())。 //給north添加組件 (jmi1)。 (jmi2)。 (jmi3)。 (jmi4)。 (connect)。 (about)。 (new BorderLayout())。 (jmb,)。 (jl1,)。 (north,)。 //給west添加組件 (new BorderLayout())。 (jl2,)。 ()。 (150,300)。 (150)。 (new Font(黑體,20))。 (jsp,)。 (west,)。 //給center添加組件 (new BorderLayout())。 (jsp1,)。 ()。 (false)。 (new Font(黑體,20))。 JPanel jp=new JPanel()。 (new FlowLayout())。 //兩種不同方式給輸入框添加回車監(jiān)聽(tīng) (enterKey)。(jl3)。 (jtf)。 (send)。 (jp,)。 (center,)。 (new ImageIcon(()).getImage())。 (800,650)。 (200,100)。 (true)。 (false)。 //給窗口紅叉按鈕從新添加監(jiān)聽(tīng)事件 ( )。 (new WindowListener(){ @Override public void windowActivated(WindowEvent e) { // TODO Autogenerated method stub } @Override public void windowClosed(WindowEvent e) { // TODO Autogenerated method stub } @Override public void windowClosing(WindowEvent e) { if(oos==null){ (0)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1