java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

Spring JIRA | Henry Szetu | 1 decade ago
  1. 0

    I have 2 forms that share a single form model and both forms have some common fields in the form model. The forms are put on a JInternalFrame and only 1 form is shown at a time as it behaves like a wizard for data entry. BUT I am not using the wizardPage/FormbackedDialog... The forms are extended from AbstractForm and the view creates an instance of both forms when it is constructed. The view put the form on the JInternalFrame one at a time. The user has to fill in the some required info on the first page before the user can proceed to the next page. When the view first show, if we type in something invalid, the error status showed up and everything is as expected. After we corrected the value and proceeds to the next page, and if we change the same field on the 2nd form to something invalid again, this exception showed up. Note that the exception only show up when the validation error has occurred on one form and has been corrected and then go to another form to trigger the validation error on the same field. If you trigger the same validation error on the same form without touching the same field on the other form, this is fine. java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1507) at java.awt.Component.getLocationOnScreen(Component.java:1481) at org.springframework.richclient.util.OverlayHelper.positionOverlay(OverlayHelper.java:185) at org.springframework.richclient.util.OverlayHelper.updateOverlay(OverlayHelper.java:165) at org.springframework.richclient.util.OverlayHelper.access$000(OverlayHelper.java:44) at org.springframework.richclient.util.OverlayHelper$2.ancestorMoved(OverlayHelper.java:100) at java.awt.Component.processHierarchyBoundsEvent(Component.java:5299) at java.awt.Component.processEvent(Component.java:4922) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) Link about this issue in the forum http://forum.springframework.org/viewtopic.php?t=3797

    Spring JIRA | 1 decade ago | Henry Szetu
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  2. 0

    I have 2 forms that share a single form model and both forms have some common fields in the form model. The forms are put on a JInternalFrame and only 1 form is shown at a time as it behaves like a wizard for data entry. BUT I am not using the wizardPage/FormbackedDialog... The forms are extended from AbstractForm and the view creates an instance of both forms when it is constructed. The view put the form on the JInternalFrame one at a time. The user has to fill in the some required info on the first page before the user can proceed to the next page. When the view first show, if we type in something invalid, the error status showed up and everything is as expected. After we corrected the value and proceeds to the next page, and if we change the same field on the 2nd form to something invalid again, this exception showed up. Note that the exception only show up when the validation error has occurred on one form and has been corrected and then go to another form to trigger the validation error on the same field. If you trigger the same validation error on the same form without touching the same field on the other form, this is fine. java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1507) at java.awt.Component.getLocationOnScreen(Component.java:1481) at org.springframework.richclient.util.OverlayHelper.positionOverlay(OverlayHelper.java:185) at org.springframework.richclient.util.OverlayHelper.updateOverlay(OverlayHelper.java:165) at org.springframework.richclient.util.OverlayHelper.access$000(OverlayHelper.java:44) at org.springframework.richclient.util.OverlayHelper$2.ancestorMoved(OverlayHelper.java:100) at java.awt.Component.processHierarchyBoundsEvent(Component.java:5299) at java.awt.Component.processEvent(Component.java:4922) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) Link about this issue in the forum http://forum.springframework.org/viewtopic.php?t=3797

    Spring JIRA | 1 decade ago | Henry Szetu
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  3. 0

    java.awt.IllegalComponentStateException

    GitHub | 2 years ago | Sorceror
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error from deck overlay when switching away from a deck with no cards defined

    GitHub | 2 years ago | gtch
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  6. 0

    [Album Catalog] Busy label stuck when search doesn't find any match

    GitHub | 2 years ago | bflorat
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.awt.IllegalComponentStateException

      component must be showing on the screen to determine its location

      at java.awt.Component.getLocationOnScreen_NoTreeLock()
    2. Java RT
      Component.getLocationOnScreen
      1. java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1507)
      2. java.awt.Component.getLocationOnScreen(Component.java:1481)
      2 frames
    3. org.springframework.richclient
      OverlayHelper$2.ancestorMoved
      1. org.springframework.richclient.util.OverlayHelper.positionOverlay(OverlayHelper.java:185)
      2. org.springframework.richclient.util.OverlayHelper.updateOverlay(OverlayHelper.java:165)
      3. org.springframework.richclient.util.OverlayHelper.access$000(OverlayHelper.java:44)
      4. org.springframework.richclient.util.OverlayHelper$2.ancestorMoved(OverlayHelper.java:100)
      4 frames
    4. Java RT
      Component.dispatchEventImpl
      1. java.awt.Component.processHierarchyBoundsEvent(Component.java:5299)
      2. java.awt.Component.processEvent(Component.java:4922)
      3. java.awt.Container.processEvent(Container.java:1569)
      4. java.awt.Component.dispatchEventImpl(Component.java:3615)
      4 frames