JTextArea - Selected Text > Bold, Ital., Underlined
Hello,
I have a word processing program where I want the user's selected text to become bold when the bold button is pressed, but I can't figure out how to set the selected text as something else. JTextArea has a method:
textArea.getSelectedText()
that returns a String, but I can't quite figure out how to replace it with the new text.
Please help.
Thank you!

