RFR: 6741930: JOptionPane doesn't honour Focus Traversal Policy
Sergey Bylokhov
serb at openjdk.org
Wed Feb 18 07:42:09 UTC 2026
On Wed, 18 Feb 2026 05:10:13 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> initialFocusComponent is still used inside hasCustomComponents check too but priority is given to passed op argument first otherwise there's no need to pass the argument and we can as well remove the parameter..
That’s the problem: the BasicOptionPaneUI spec says nothing about that parameter (unlike the parent class), and the implementation ignores it, instead checking the inputComponent and then the initialFocusComponent.
So the question is: how should the parameter passed to that method be handled, and what priority should it have compared to inputComponent and initialFocusComponent?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29738#issuecomment-3919206719
More information about the client-libs-dev
mailing list