A
A
Alexander Interesting2021-07-26 12:33:46
Java
Alexander Interesting, 2021-07-26 12:33:46

How to allow deleting only the text that the user himself wrote in the JTextArea?

How to prohibit deleting the text that was printed by the program, and the text that the user wrote, he can delete.

Let's say:

Your name: Vasya
Here the user cannot change the text "Your name:", and "Vasya" can add and delete it.

How to do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question