I'm trying to make an interface for a login/register app and I have, in the email box (jTextField) an example as text (example@gmail.com) but when I run my program when I click that box to write my email on it, I have to delete my set text to write what I want.
What I thought to do was to create 2 jTextFields, the one behind not editable and the one forward where I'd put my text. So there are two things I don't know how to do:
- put the forward jTextField invisible so we can see the behind one
- make the text on the behind jTextField disappear when I click the front one
Thanks for trying the help.