Introduction - If you have any usage issues, please Google them yourself
Basic design ideas:
Co-editing begins, the client can only insert or delete operations. The server side receives the editing operation of three clients, and after centralized processing, a sequence of operation is generated to return to each client. After the client executes the sequence, the results of the co-editing will be displayed.
Instructions:
New project "untitled2" in Jbuilder 9.0;
Change the IP address of the file FrameTest_Client to the local address;
Run the framet etest file and start the server side;
Run the FrameTest_Client file and start the client (three clients);
Click on the menu "file" of three clients. "Connection server";
Click on the server menu "file" - > "Start service";
Users can start co-editing on the client side;
End of edit, user click on client menu "file" - > "End the client";
To close the server, click on the menu "file" - > "Exit";
Collaborative editing ends.
Packet : 37724082csce.rar filelist
zOffice\Java Socket.txt
zOffice\UserAuthentication.java
zOffice\DocumentEvent.txt
zOffice\untitled2.rar
zOffice\说明.txt
zOffice\clienttext\FrameClient.java
zOffice\clienttext\TextClient.java
zOffice\clienttext\DataSocket.java
zOffice\clienttext
zOffice\servercoedit\ClientSocket.java
zOffice\servercoedit\CoEditServer.java
zOffice\servercoedit\DatabaseOperation.java
zOffice\servercoedit\ServerFrame.java
zOffice\servercoedit\WatchThead.java
zOffice\servercoedit\DataSocket.java
zOffice\servercoedit\AccessControl.java
zOffice\servercoedit
zOffice