On Fri, 24 May 2024 11:38:30 GMT, Abhishek Kumar <[email protected]> wrote:

> "java.awt.IllegalComponentStateException: component must be showing on the 
> screen to determine its location" is thrown when getLocationOnScreen method 
> is invoked for JTableHeader while testing JFileChooser demo. It seems that in 
> getLocationOfScreen method we are trying to access the parent location but 
> that is not visible and ICSE is thrown.
> 
> Fix is to handle the exception and can be verified using the steps mentioned 
> in [JDK-8332550](https://bugs.openjdk.org/browse/JDK-8332550).
> CI testing is green and link is mentioned in JBS.

This pull request has now been integrated.

Changeset: 054362ab
Author:    Abhishek Kumar <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/054362abe040938b87eb1a1cab8a0a94540e0667
Stats:     5 lines in 1 file changed: 3 ins; 0 del; 2 mod

8332550: [macos] Voice Over: java.awt.IllegalComponentStateException: component 
must be showing on the screen to determine its location

Reviewed-by: asemenov, kizune, achung

-------------

PR: https://git.openjdk.org/jdk/pull/19391

Reply via email to