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

正文內(nèi)容

基于java的qq聊天系統(tǒng)-資料下載頁

2025-08-07 11:56本頁面
  

【正文】 } public void windowOpened(WindowEvent arg0) { // TODO Autogenerated method stub } })。 } public void actionPerformed(ActionEvent arg0) { // TODO Autogenerated method stub if (() == button) { ((), 2)。 } else if (() == jb) { ((), 1)。 } } public void mouseClicked(MouseEvent arg0) { // TODO Autogenerated method stub } public void mouseEntered(MouseEvent arg0) { // TODO Autogenerated method stub } public void mouseExited(MouseEvent arg0) { // TODO Autogenerated method stub } public void mousePressed(MouseEvent arg0) { // TODO Autogenerated method stub } public void mouseReleased(MouseEvent arg0) { // TODO Autogenerated method stub if (() == tree) { TreePath tp = ((), ())。 if (tp == null) { return。 } friend = ()。 // 獲取點擊對象的名字 if (() == 2 amp。amp。 () == 3) { // 雙擊彈出聊天界面 QqChat qq = new QqChat(, friend + )。 // 保存聊天界面線程 (++friend, qq)。 } } else if (() == tree1) { TreePath tp = ((), ())。 if (tp == null) { return。 } friends = ()。 if (() == 2 amp。amp。 () == 2) { // 雙擊彈出聊天界面 QqMess qm = new QqMess(u)。//name+)。 (owner, qm)。 } } } public void sendmessage(String message) { try { (message)。 } catch (IOException e) { // TODO Autogenerated catch block ()。 } }} 當(dāng)用戶登錄成功的時,在服務(wù)器端會發(fā)送給該用戶的好友這個用戶上線了,當(dāng)用戶要下線時,會向服務(wù)器發(fā)送一個信息,這次服務(wù)器會向大家發(fā)送該用戶下線的通知。 收發(fā)好友信息用戶通過點擊好友列表需要聊天的好友,會彈出與其聊天好友的面板,在此面板可以向好友發(fā)送信息和顯示來自好友的信息。私聊代碼如下:package 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class QqChat extends JFrame implements KeyListener, ActionListener, MouseListener { private JTextArea textArea_1。 private JTextArea textArea。 JLabel jl, jl1, jl2, jl3, jl4, jl5。 /** * @param args */ private String owner。 String friend。 private boolean isAccept = true。 public static void main(String[] args) { // TODO Autogenerated method stub // QqChat qc=new QqChat()。 } public QqChat(final String ownerqq, final String friendqq) { super()。 getContentPane().setLayout(null)。 = ownerqq。 = friendqq。 final JScrollPane scrollPane = new JScrollPane()。 (0, 0, 349, 230)。 getContentPane().add(scrollPane)。 textArea = new JTextArea()。 (false)。 (textArea)。 final JScrollPane scrollPane_1 = new JScrollPane()。 (0, 261, 349, 81)。 getContentPane().add(scrollPane_1)。 textArea_1 = new JTextArea()。 (this)。 (textArea_1)。 (new KeyListener() { public void keyPressed(KeyEvent arg0) { // TODO Autogenerated method stub } public void keyReleased(KeyEvent arg0) { // TODO Autogenerated method stub } public void keyTyped(KeyEvent arg0) { // TODO Autogenerated method stub if (() == ) { User u = new User()。 (new SimpleDateFormat(yyyyMMdd HH:mm:ss) .format(new Date()))。 ((ownerqq))。 ((friendqq))。 (())。 ()。 if (() == null || ().equals()) { (, 不能發(fā)空信息)。 } else { (我對 + friendqq + 說: + new SimpleDateFormat(yyyyMMdd HH:mm:ss) .format(new Date()) + : + \n + () + \n)。 (u)。 // 發(fā)信息 ()。 } } } })。 jl = new JLabel(字體 + , new ImageIcon(images/), )。 jl1 = new JLabel(表情 + , new ImageIcon(images/), )。 jl2 = new JLabel(發(fā)送文件 + , new ImageIcon(images/), )。 (this)。 final JToolBar toolBar = new JToolBar()。 (0, 229, 349, 33)。 (jl)。 (jl1)。 (jl2)。 getContentPane().add(toolBar)。 final JButton button = new JButton()。 (new Font(, , 14))。 (發(fā)送)。 (281, 346, 68, 25)。 getContentPane().add(button)。 final JButton button_1 = new JButton()。 (new Font(, , 14))。 (退出)。 (207, 346, 68, 25)。 getContentPane().add(button_1)。 final JButton button_2 = new JButton()。 (new Font(, , 14))。 (聊天記錄)。 (this)。 (0, 346, 95, 25)。 getContentPane().add(button_2)。 (ownerqq + 正在和 + friendqq + 聊天)。 Toolkit toolkit = ()。 Dimension d = ()。 (( 500) / 2, ( 408) / 2, 500, 408)。 (true)。 } public void keyReleased(KeyEvent arg0) { // TODO Autogenerated method stub } public void keyTyped(KeyEvent arg0) { // TODO Autogenerated method stub } public void actionPerformed(ActionEvent arg0) { // TODO Autogenerated method stub File file = new File(./ + owner + 聊天記錄)。 Chat_Record cr = new Chat_Record(file)。 (() + 10, () + 10)。 } public void mouseClicked(MouseEvent arg0) { // TODO Autogenerated method stub if (() == 2) { JFileChooser jfc = new JFileChooser(.)。 int res = ()。 File file = null。 if (res != ) { return。 } } } public void mouseEntered(MouseEvent arg0) { // TODO Autogenerated method stub } public void mouseExited(MouseEvent arg0) { // TODO Autogenerated method stub } public void mousePressed(MouseEvent arg0) { // TODO Autogenerated method stub } public void mouseReleased(MouseEvent arg0) { // TODO Autogenerated method stub } public void keyPressed(KeyEvent arg0) { // TODO Autogenerated method stub } // 服務(wù)器返回 public void sendmessage(User us) { String message = ()。 if ((0) == 39。39。) { String mess = (3, () 5)。 if ((0) == 39。39。) { String mes = (10, () 3)。 (friend + 對你說: + ()+: +\n+mes + \n)。 } else { (friend + 對你說: + ()+: +\n+ mess + \n)。 } } else {
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1