I was wondering if I could get help in a matter I'm having difficulties in. Basically I have created a program that will display text depending on which index is selected. It all works fine, It saves and loads properly but there is one functionality I want to add to it and I don't know if it is possible or how it works.
From what I noticed, a JTextArea works same as a .txt document, you can change font as you please but it affects whole document. What I want to do is be able to bold one line, underline the next, make font size of third line bigger, and so on. Just like you can do in a word document.
I don't need it to be overly detailed but if i can get the bold, italic, underline, font size, font color and font type that would be more than I can hope for. So my question is, is there an object in java that supports this and if so how can I go about saving it after the program closes?