I have a main Component with a bunch of child components.
When you click anywhere in the background of the parent, it automatically gives focus (a focus outline) to the first child component. How do you disable this behavior? I’ve tried everything I can think of.
In the main (parent) component constructor, I have tried setting:
setWantsKeyboardFocus(false);
setMouseClickGrabsKeyboardFocus(false);
setInterceptsMouseClicks(false, false);
setFocusContainer(false);
…and it still automatically focuses the first child component with a click.