Was wondering if it is possible to initialize a text field with printing (this part I know how to do), but then have the printing highlighted, and then disappear when the user starts typing? Even without the highlighting, how can you have the field initialize with something like,” Please enter your phone number”, and then have that disappear so the the user doesn’t have to delete the text?
Share
There is another approach, with the focusGained event.
Just mark the initial Text:
This way whenever the user types something in the jTextArea1 the initial text will be substituted immediately.