April 30th, 2011, 08:30 AM
Simultaneous JEditorPane/JtextField editing
I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients.
It is something like this.
. There are several users( i.e a group) with the same application which contains a JEditorPane.
. There is a group leader for a group( note: there is an option to be a group leader in the same application) and each an every other user( i.e group member) will be connected to the group leader via individual sockets.
. After connecting as a group every one can type anything into the JEditorPane and that content should be synchronized with the content of the others at the same time. So at the end there will be same content on the all the JEditorPanes.
This is lot similar to Google docs. I need to do it using a Java application. I have already implemented the group initiation part using sockets and it is perfectly connecting with each other on a wired LAN.
Synchronizing part is where i am struggling at the moment. If we forget about conflict handling for a moment and just focus on 2 users working on two separate paragraphs at the same time, what are the possible methods that I have to achieve this? Any suggestions please...
Thanks a lot in advance
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!