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

Oracle Community | 807587 | 1 decade 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.
  1. 0

    IllegalComponentStateException while in a JTable

    Oracle Community | 1 decade ago | 807587
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  2. 0

    set defaultCellEditor of JTable occurred an Exception

    Oracle Community | 1 decade ago | 807549
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

    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
      Dialog.show
      1. java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1507)
      2. java.awt.Component.getLocationOnScreen(Component.java:1481)
      3. javax.swing.Autoscroller.mouseDragged(Autoscroller.java:79)
      4. javax.swing.JComponent.processMouseMotionEvent(JComponent.java:2775)
      5. java.awt.Component.processEvent(Component.java:4901)
      6. java.awt.Container.processEvent(Container.java:1569)
      7. java.awt.Component.dispatchEventImpl(Component.java:3615)
      8. java.awt.Container.dispatchEventImpl(Container.java:1627)
      9. java.awt.Component.dispatchEvent(Component.java:3477)
      10. javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.repostEvent(BasicTableUI.java:475)
      11. javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseDragged(BasicTableUI.java:554)
      12. java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:262)
      13. java.awt.Component.processMouseMotionEvent(Component.java:5148)
      14. javax.swing.JComponent.superProcessMouseMotionEvent(JComponent.java:2785)
      15. javax.swing.Autoscroller$AutoScrollTimerAction.actionPerformed(Autoscroller.java:52)
      16. javax.swing.Timer.fireActionPerformed(Timer.java:271)
      17. javax.swing.Timer$DoPostEvent.run(Timer.java:201)
      18. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
      19. java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
      20. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
      21. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
      22. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
      23. java.awt.Dialog$1.run(Dialog.java:540)
      24. java.awt.Dialog.show(Dialog.java:561)
      24 frames