posted 13 years ago
Hi all, I have a JTextField when I first load it and input some text in it, it works fine. Then if I load it again, the previous text I entered remains there when I put my mouse over it.
I want the text not to show like if the field is blank all the time. I tried using JTextField's setText() method before adding it to the JPanel. But that didn't work. If I check if the text is present using getText() method, I get null. So that didn't work.
Any ideas? Thanks.
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP