I have a textfield in my application with some text already in it. I want to clear that text as soon as i press first key. I tried to use keyListener but it is deleting text every single type i press any key. So is there any way, with which, I can clear initial text on only first keypress?
我认为您正在寻找文字提示 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.