I would like to have a focus listener but the way I did it shows error in IDE. My code follows
txtField.addFocusListener(event ->{
@Override
public void focus() {
System.out.println("Focus");
}
});
Can you tell me what I am making wrong?