【正文】
ments : java類 * Environment :Win7/Win8/Win XP * Version : * Sr Date Modified By : * null **/package server。 }} 聊天界面及聊天接口代碼/** * () 2013226 * Copy Right Information : 淮陰師范學院 計算機科學與技術學院(軟件工程) * author : 劉 超(計科0903 學號:210910018) * Project : 基于文字水印談判系統(tǒng)的設計與實現(xiàn) * JDK version used : * Comments : java類 * Environment :Win7/Win8/Win XP * Version : * Sr Date Modified By : * null **/package 。 while((msg = ()) != null){ String temp = ()。 } } /** * 清除文本內(nèi)容 */ public void clearTextContent(){ (1)。 } } else { (false)。 String password = new String(pw)。 str = (0, i)。 public void setAccpetPattern(String pattern){ = (pattern)。 setDefaultCloseOperation()。 srceenHeight = ()。 (cancelBtn,new GridBagConstraints(2,3,1,1, ,new Insets(15,35,50,40),0,0))。 (cbUserId,new GridBagConstraints(1,1,2,1, ,new Insets(15,5,0,40),0,0))。 GridBagLayout gridbag = new GridBagLayout()。 (登錄)。 //更新消息顯示框 } }。 (new ActionListener(){ public void actionPerformed(ActionEvent e) { (1)。 (documents)。 (html請在這里密碼br密碼必須是字符和數(shù)字/html)。 passwordField = new JPasswordField(10)。 (\\d+)。 cbUserId = new JComboBox(userID)。 /** * 登陸界面有參構造函數(shù) * param loginDao */ public LoginUI(ILoginDao loginDao){ super(用戶登錄界面)。//當前屏幕的寬度 private double srceenHeight。 private JPasswordField passwordField。import 。import 。import 。由于該系統(tǒng)采用SQL Server關系型數(shù)據(jù)庫系統(tǒng),因此,應將概念設計的ER模型轉(zhuǎn)化為關系數(shù)據(jù)模型?;谖淖炙〉恼勁邢到y(tǒng)設計與實現(xiàn),主要采用的技術:接口技術,類的封裝繼承以及多態(tài)技術,重載和重寫等。由注冊頁面:用于用戶的注冊功能,使用戶添加進入數(shù)據(jù)庫SQL Server 2005,登錄頁面:用于檢驗登錄賬號是否合法,是否賬號存在 ,主界面:用于顯示好友及在線好友的通訊錄,聊天界面:用于通信的雙方互相聊天溝通,談判等。 For Myeclipse development tools, database SQL Server 2005. Main technology is: Interface technology (Interface), polymorphism technology, encapsulation and inheritance of class and override and overloading technology,And use text watermark to maintain the copyright information.Keyword:Chat online negotiations, text watermark, negotiations, Java, C/S, SQL Server 2005目 錄摘要Abstract1 前言..................................................4............................................4..................................5........................................5........................................62 系統(tǒng)概念模型描述.....................................7.................................7.................................73 系統(tǒng)設計.............................................7.............7.......................8.....................................8...............8.............84 系統(tǒng)運行平臺........................................9.......................................9.......................................95 系統(tǒng)實現(xiàn)和核心模塊的描述............................9.................................9 聊天界面及聊天接口代碼...........................15..........................16..................................25總結(jié).................................................25參考文獻.............................................25致謝.................................................251 前言 在當今信息化爆炸的時代,互聯(lián)網(wǎng)的作用越來越大,將人們聯(lián)系成一體,人們可以足不出戶的進行信息的交流和共享。采用MVC之后,可以使編程條理更加清晰,各個層之間相互獨立并相互合作,有利于系統(tǒng)的健壯性和后期維護擴展。因此,網(wǎng)絡談判系統(tǒng)勢在必行,本系統(tǒng)基于文字水印的談判系統(tǒng)設計與實現(xiàn),主要采用C/S模式開發(fā),采用MVC三層架構:Model View Controller,是模型(model)-視圖(view)-控制器(controller)。鑒于網(wǎng)絡的流行,社會的生活節(jié)奏加快,人們的矛盾日益趨于突顯,但限于地域和時間的緊迫,一些談判和協(xié)商及相互溝通更加需要網(wǎng)絡軟件的支持。:用Java代碼來實現(xiàn),主要用于業(yè)務和數(shù)據(jù)處理的函數(shù)實現(xiàn)。關鍵字:網(wǎng)絡談判,文字水印,聊天談判,Java,C/S,SQL Server 2005Abstract:Along with the social rhythm faster and faster, all kinds of information networking tools more and more, such as tencent . Given the popularity of network, the social life rhythm speeding up, the contradictions of people increasingly tend to highlight, but limited by geographical and time urgent, some negotiation and consultation, and municate with each other more need the support of network software. Network negotiation system is imperative, therefore, this system based on system design and implementation of text watermark in the negotiations, mainly USES the C/S Model development, USES the MVC threetier architecture: the Model View Controller, is the Model (the Model) View (View) Controller (the Controller). Layer: 1. The model of data storage is mainly used in SQL Server 2005 is, in the form of a database to store data, in order to add or delete of data check and later maintenance. 2. The view layer, using a Java Swing technique to develop and to name the end with the UI. 3. Controller: using Java code, mainly for the business and data processing function. After using MVC, programming method can be more clear, between eac