Using Styled Text
I'm really confused about how to simply make a text area of some sort (such as maybe a JTextPane) and have different sections of text be different sizes/styles?
Honestly, I just have no clue how to do it. I've spent a lot of time on the API docs and the Java Tutorial section about it but haven't found the answers I was looking for.
Say I wanted the first line of text in the JTextPane to be bold and the second to be plain? Simple enough... but I have no clue how to do it without setting a constant for the whole thing.
Any help would be appreciated. Thanks.
Re: Using Styled Text