How to change the font only of the selected text in the text area in Swing (Java)

Asked

Viewed 19 times

0

I’m making a mini editor, but when I click on the bold button, for example, all text changes and I want you to change only the selected text. And more, how do I so that when you click on the button the text if you have normal goes to bold and vice versa, since clicking once has no way to reverse.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.