background text in JTextfield
843805Nov 28 2006 — edited Nov 28 2006Hi,
I would like to make my JTextField have a default grey text which is removed when the user clicks in the textfield. Furthermore it should be turn up again if focus is removed trom the JTextField whithout the user having typed any text.
In other words, it should work as the default searchfield in the new IE 7.
Is this functionallity implemented in JTextField as default, or should I add focuslisteners to implement it myself?
Thanks in advance.