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

正文內(nèi)容

java課程設(shè)計(jì)聊天室畢業(yè)論文(編輯修改稿)

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

【文章內(nèi)容簡(jiǎn)介】 agConstraints()。 =1。 = 2。 = 。(bobox,girdBagCon)。(bobox)。girdBagCon = new GridBagConstraints()。 = 0。 = 3。(messageLabel,girdBagCon)。(messageLabel)。girdBagCon = new GridBagConstraints()。 = 1。 = 3。(sysMessage,girdBagCon)。(sysMessage)。girdBagCon = new GridBagConstraints()。 = 2。19 = 3。(sysMessageButton,girdBagCon)。(sysMessageButton)。girdBagCon = new GridBagConstraints()。 = 0。 = 4。 = 3。(showStatus,girdBagCon)。(showStatus)。(messageScrollPane,)。(downPanel,)。//關(guān)閉程序時(shí)的操作(new WindowAdapter(){public void windowClosing(WindowEvent e){stopService()。(0)。}})。}/** * 事件處理 */public void actionPerformed(ActionEvent e) {Object obj = ()。if (obj == startServer || obj == startItem) { //啟動(dòng)服務(wù)端startService()。}else if (obj == stopServer || obj == stopItem) { //停止服務(wù)端int j=(this,真的停止服務(wù)嗎?,停止服務(wù),)。if (j == ){stopService()。}}else if (obj == portSet || obj == portItem) { //端口設(shè)置//調(diào)出端口設(shè)置的對(duì)話框PortConf portConf = new PortConf(this)。()。}else if (obj == exitButton || obj == exitItem) { //退出程序int j=(this,真的要退出嗎?,退出,)。if (j == ){stopService()。(0)。}20}else if (obj == helpItem) { //菜單欄中的幫助//調(diào)出幫助對(duì)話框Help helpDialog = new Help(this)。()。}else if (obj == sysMessage || obj == sysMessageButton) { //發(fā)送系統(tǒng)消息sendSystemMessage()。}}/** * 啟動(dòng)服務(wù)端 */public void startService(){try{serverSocket = new ServerSocket(port,10)。(服務(wù)端已經(jīng)啟動(dòng),在+port+端口偵聽(tīng)...\n)。(false)。(false)。(false)。(false)。stopServer .setEnabled(true)。stopItem .setEnabled(true)。(true)。}catch (Exception e){//(e)。}userLinkList = new UserLinkList()。listenThread = new ServerListen(serverSocket,bobox,messageShow,showStatus,userLinkList)。()。}/** * 關(guān)閉服務(wù)端 */ JCreatorJcreator是一個(gè)用于Java程序設(shè)計(jì)的集成開(kāi)發(fā)環(huán)境,具有編輯、調(diào)試、運(yùn)行Java程序的功能。,它又分為L(zhǎng)E和Pro 版本。LE版本功能上受到一些限制,是免費(fèi)版本。Pro版本功能最全,但這個(gè)版本是一個(gè)共享軟件。這個(gè)軟件比較小巧,對(duì)硬件要求不是很高,完全用C++寫的,速度快、效率高。具有語(yǔ)法著色、代碼自動(dòng)完成、代碼參數(shù)提示、工程向?qū)?、類向?qū)У裙δ?。第一次啟?dòng)時(shí)提示設(shè)置JavaJDK 主目錄及JDKJavaDoc 目錄,軟件自動(dòng)設(shè)置好類路徑、編譯器及解釋器路徑,還可以在幫助菜單中使用JDKHelp。21 本章小結(jié)本章介紹了系統(tǒng)的具體實(shí)現(xiàn)和部分關(guān)鍵代碼,其中包括用戶登錄所要用到的函數(shù)和主界面的框架設(shè)計(jì)。22第5章 結(jié)束語(yǔ)本文討論了如何利用JAVA技術(shù)開(kāi)發(fā)聊天室系統(tǒng),基本滿足了結(jié)構(gòu)化、界面友好、速度快、安全性以及穩(wěn)定性等特點(diǎn)。系統(tǒng)著重研究并實(shí)現(xiàn)了網(wǎng)絡(luò)應(yīng)用的部分。根據(jù)實(shí)現(xiàn)的情況看,具有較友好的聊天界面生成效果,以及流暢的網(wǎng)絡(luò)通信效果。生成的聊天室可以達(dá)到基本的聊天要求,具有較高的研究?jī)r(jià)值。系統(tǒng)具有目前聊天室的基本功能:包括支持語(yǔ)氣選擇,支持私聊,可以給所有聊友發(fā)公共信息,具有速度快,高穩(wěn)定性,占用系統(tǒng)資源少,用戶界面友好等特點(diǎn)。通過(guò)畢業(yè)設(shè)計(jì),發(fā)現(xiàn)自己在理論研究和實(shí)際工作能力等方面都得到了提高,受益匪淺,同時(shí)在老師的指導(dǎo)和課題組同學(xué)的共同幫助下,及時(shí)總結(jié)研究成果,這些無(wú)疑會(huì)對(duì)我今后的工作和學(xué)習(xí)帶來(lái)很大的幫助。23附錄 源代碼import .*。import .*。import .*。import .*。import .*。import .*。/* * 聊天服務(wù)端的主框架類 */public class ChatServer extends JFrame implements ActionListener{public static int port = 8888。//服務(wù)端的偵聽(tīng)端口ServerSocket serverSocket。//服務(wù)端SocketImage icon。//程序圖標(biāo)JComboBox bobox。//選擇發(fā)送消息的接受者JTextArea messageShow。//服務(wù)端的信息顯示JScrollPane messageScrollPane。//信息顯示的滾動(dòng)條JTextField showStatus。//顯示用戶連接狀態(tài)JLabel sendToLabel,messageLabel。JTextField sysMessage。//服務(wù)端消息的發(fā)送JButton sysMessageButton。//服務(wù)端消息的發(fā)送按鈕UserLinkList userLinkList。//用戶鏈表//建立菜單欄JMenuBar jMenuBar = new JMenuBar()。 //建立菜單組JMenu serviceMenu = new JMenu (服務(wù)(V))。 //建立菜單項(xiàng)JMenuItem portItem = new JMenuItem (端口設(shè)置(P))。JMenuItem startItem = new JMenuItem (啟動(dòng)服務(wù)(S))。JMenuItem stopItem=new JMenuItem (停止服務(wù)(T))。JMenuItem exitItem=new JMenuItem (退出(X))。JMenu helpMenu=new JMenu (幫助(H))。JMenuItem helpItem=new JMenuItem (幫助(H))。//建立工具欄JToolBar toolBar = new JToolBar()。//建立工具欄中的按鈕組件JButton portSet。//啟動(dòng)服務(wù)端偵聽(tīng)JButton startServer。//啟動(dòng)服務(wù)端偵聽(tīng)JButton stopServer。//關(guān)閉服務(wù)端偵聽(tīng)24JButton exitButton。//退出按鈕//框架的大小Dimension faceSize = new Dimension(400, 600)。ServerListen listenThread。JPanel downPanel 。GridBagLayout girdBag。GridBagConstraints girdBagCon。/** * 服務(wù)端構(gòu)造函數(shù) */public ChatServer(){init()。//初始化程序//添加框架的關(guān)閉事件處理()。()。//設(shè)置框架的大小(faceSize)。//設(shè)置運(yùn)行時(shí)窗口的位置Dimension screenSize = ().getScreenSize()。( (int) ( ()) / 2, (int) ( ()) / 2)。(false)。(聊天室服務(wù)端)。 // 設(shè)置標(biāo)題//程序圖標(biāo)icon = getImage()。(icon)。 //設(shè)置程序圖標(biāo)show()。//為服務(wù)菜單欄設(shè)置熱鍵39。V39。(39。V39。)。//為端口設(shè)置快捷鍵為ctrl+p (39。P39。)。 ( (,))。//為啟動(dòng)服務(wù)快捷鍵為ctrl+s (39。S39。)。 ( (,))。//為端口設(shè)置快捷鍵為ctrl+T (39。T39。)。 ( (,))。//為退出設(shè)置快捷鍵為ctrl+x (39。X39。)。 ( (,))。//為幫助菜單欄設(shè)置熱鍵39。H39。(39。H39。)。//為幫助設(shè)置快捷鍵為ctrl+p25 (39。H39。)。 ( (,))。}/** * 程序初始化函數(shù) */public void init(){Container contentPane = getContentPane()。(new BorderLayout())。//添加菜單欄 (portItem)。 (startItem)。 (stopItem)。 (exitItem)。 (serviceMenu)。 (helpItem)。 (helpMenu)。 setJMenuBar (jMenuBar)。//初始化按鈕portSet = new JButton(端口設(shè)置)。startServer = new JButton(啟動(dòng)服務(wù))。stopServer = new JButton(停止服務(wù) )。exitButton = new JButton(退出 )。//將按鈕添加到工具欄(portSet)。()。//添加分隔欄(startServer)。(stopServer)。()。//添加分隔欄(exitButton)。(toolBar,)。//初始時(shí),令停止服務(wù)按鈕不可用(false)。stopItem .setEnabled(false)。//為菜單欄添加事件監(jiān)聽(tīng)(this)。(this)。(this)。(this)。(this)。//添加按鈕的事件偵聽(tīng)(this)。26(this)。(this)。(this)。bobox = new JComboBox()。(所有人,0)。(0)。messageShow = new JTextArea()。(false)//添加滾動(dòng)條messageScrollPane = new JScrollPane(messageShow,)。(new Dimension(400,400))。()。showStatus = new JTextField(35)。(false)。sysMessage = new JTextField(24)。(false)。sysMessageButton = new JButton()。(發(fā)送)。//添加系統(tǒng)消息的事件偵聽(tīng)(this)。(this)。sendToLabel = new JLabel(發(fā)送至:)。messageLabel = new JLabel(發(fā)送消息:)。downPanel = new JPanel()。girdBag = new GridBagLayout()。(girdBag)。girdBagCon = new GridBagConstraints()。 = 0。 = 0。 = 3。 = 2。 = 5。 = 5。JLabel none = new JLabel( )。(none,girdBagCon)。(none)。girdBagCon = new GridBagConstraints()。 = 0。 = 2。 = new Insets(1,0,0,0)。 = 5。 = 5。(sendToLabel,girdBagCon)。(sendToLabel)。27girdBagCon = new GridBagConstraints()。 =1。 = 2。 = 。(bobox,girdBagCon)。(bobox)。girdBagCon = new GridBagConstraints()。 = 0。 = 3。(messageLabel,girdBagCon)。(messageLabel)。girdBagCon = new GridBagConstraints()。 = 1。 = 3。
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1