Is there a java event for JTextField do like : if the cursor already was in the JTextField and MousePressed = do nothing if click on the JTextField for the first time = do things I have been used , MousePressed(java.awt.event.MouseEvent evt)
but this not exactly what I want. thank you
You can implement your own custom logic:
boolean alreadyClicked = false
if(!alreadyClicked) { alreadyClicked = true; // do your work }
alreadyClicked = false;
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.