I'm in the process of writing an AIM clone and I'd like the users to be able to send stylized text to each other. Is there any library out there that includes a custom widget that does this for me already? I'd like to be able to select a block of text, then change it's color, style, etc. I don't really have a problem writing this myself but I figure a third party library exists somewhere that already has all of this functionality. I don't know what the name of the component I'm looking for is called so I'm having a hard time googling it myself. Thanks in advance.
Well, right now I'm using JTextPane but setting styles is not really as straightforward as I would like. I was hoping that there was a custom made control somewhere that acted like a JTextPane but already includes a toolbar to let users change colors, fonts, and styles.
We have such a thing at work. If you can wait until Monday, I will look into whether I can post the code here. (If I forget about it, bump this thread.)
OK, no problem. I hope to tackle this problem later in the week. The first question that immediately comes to mind though is how do I go about appending text to the control? I noticed that JTextArea has an append() method but JTextPane and JEditorPane don't. Right now my only idea is that I will constantly be updating the model that JEditorPane sits on (StylizedDocument, something like that?) so I will constantly be creating a new model and attaching it to the JEditorPane. Oh, by the way, I have no idea what I'm talking about!