Check parent component visibility status before asking it for its screen 
coordinates.

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

Commit messages:
 - 8283215: [macos] Screen Magnifier: Getting 
java.awt.IllegalComponentStateException when menu item is selected

Changes: https://git.openjdk.java.net/jdk/pull/8008/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8008&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8283215
  Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8008.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8008/head:pull/8008

PR: https://git.openjdk.java.net/jdk/pull/8008

Reply via email to