i have a chatting module in which the members of the chat can type text in different color ,font and size and i want to send this to other members of the chat room as well. that means that i have to send the attributes of each and every character of the jtextpane in which the members type their message and send it across the n/w but when i try to send it it says that the attirbuteset object is not serializable. how should i send the data.last but not least the data that i want to send is to be appended to another JTextpane. so that is way i want to send the attributeset along with the data typed,across the network. i hope this clears the scenario.plz help.it is urgent.thx in advance.
I'd see if I couldn't set content type to HTML or RTF or something that streams out to Strings nicely. What is your content type now? What does getText() give you now?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
posted 15 years ago
i had tried using HTML document once but then whatever i type is shown along with the html tags. so that is not what i want. i just want the text to be displayed with the effects that the user gives.i haven't specified any document for the JTextPane.it is the default one.if there is a small code that supports your statement then that would be good for me.thx.what are the other formats that can be specified apart from html and how do you do that. for ex: if you want to set the html format then you can say setContentType("text/html"),so what are the other formats and how do you specify them.i hope i am on the right track. [ September 14, 2005: Message edited by: mihir maniar ]