> In a chatserver scenario whatever i type in my > JTextPane must be appened to JTextPane of each and > every window of each and every client that has logged > on. my text is multi coloured,multi font,multi size . > how do i go about acheiving this.
In a chatserver scenario means in a client server architecture.
Well you will need to figure a wait of sending that information to other machines. You could send a String object, but that would not encapsulate the formatting information. Maybe you could send a HTML string. Take a looked at the StyledDocument interface.
To send the data to other machines you could take a look at RMI or the Socket and ServerSocket classes.