java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(java.desktop@9-ea/Component.java:2079) at java.awt.Component.getLocationOnScreen(java.desktop@9-ea/Component.java:2053)

JDK Bug System | Yuri Nesterenko | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.awt.IllegalComponentStateException

    component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(java.desktop@9-ea/Component.java:2079) at java.awt.Component.getLocationOnScreen(java.desktop@9-ea/Component.java:2053)

    at CloseOnMouseClickPropertyTest.lambda$getClickPoint$2()
  2. Unknown
    CloseOnMouseClickPropertyTest.lambda$getClickPoint$2
    1. CloseOnMouseClickPropertyTest.lambda$getClickPoint$2(CloseOnMouseClickPropertyTest.java:143)
    1 frame