RFR: 6741930: JOptionPane doesn't honour Focus Traversal Policy
Sergey Bylokhov
serb at openjdk.org
Thu Feb 26 01:06:02 UTC 2026
On Tue, 24 Feb 2026 04:40:13 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>It is only called from one place
This is our class, but above I meant the usage in the wild by applications.
> and as per OptionPaneUI spec it should request the component to have focus which I believe the author of this method intended for the passed component else there is no need to pass in the param
The author of OptionPaneUI appears to have expected that behavior. However, the specification for the subclass BasicOptionPaneUI overrides it. So the question is which specification should be followed, and if the code is changed, which specification should be updated accordingly.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29738#issuecomment-3963219431
More information about the client-libs-dev
mailing list