To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
some of my components get focus when clicked and don't lose focus.they lose focus only when clicking anywhere so i want to simulate mouse click
any idea ?
of course a solution for the main problem (focus) would be better :D
Hi, did you try existing method focus() ? :blink: It's available for all AbstractField objects (buttons, fields...)
focus() ; makes the item focusedi want it to lose focus :D
Well, try focus object A so you will lose focus on object B :) (maybe add hidden field and set focus on it?) Or, try fire onMouseClick event on other object? Just guessing.. :P