Click to See Complete Forum and Search --> : rich text client/server application


seeanil1
July 31st, 2003, 06:58 AM
hi,
i am developing a client/server application .It is working correctly and data is transferred .But now I have a problem.The problem is that what ever is typed or drawn in server window should be simultaneously written or drawn on client side.Can i get the java code for it. I need it urgently.I am using a JTextPane in both client and server applications.:confused:

seeanil1
July 31st, 2003, 07:05 AM
hi,
i am developing a client/server application .It is working correctly and data is transferred .But now I have a problem.The problem is that what ever is typed or drawn in server window should be simultaneously written or drawn on client side.Can i get the java code for it. I need it urgently.I am using a JTextPane in both client and server applications.:confused:

ArchAngel
July 31st, 2003, 08:53 AM
Why not just send the data over a socket?

Goodz13
August 2nd, 2003, 11:12 AM
You can add listeners to your app (MouseListener, MouseMotionListener-> for your drawing?!, KeyListener), when ever an event is fired, send the key that was pressed, the drawing or even the event to the client.