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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807587, 1 year ago
component must be showing on the screen to determine its location
via Oracle Community by 807577, 1 year ago
component must be showing on the screen to determine its location
via Oracle Community by 807577, 1 year ago
component must be showing on the screen to determine its location" Here is my stack dump:
via Netbeans Bugzilla by isullivan, 4 months ago
component must be showing on the screen to determine its location
via Netbeans Bugzilla by scheung, 4 months ago
component must be showing on the screen to determine its location
via Oracle Community by 807577, 1 year ago
component must be showing on the screen to determine its location
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 javax.swing.Autoscroller.mouseDragged(Autoscroller.java:79)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:2775)
at java.awt.Component.processEvent(Component.java:4901)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.repostEvent(BasicTableUI.java:475)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseDragged(BasicTableUI.java:554)
at java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:262)
at java.awt.Component.processMouseMotionEvent(Component.java:5148)
at javax.swing.JComponent.superProcessMouseMotionEvent(JComponent.java:2785)
at javax.swing.Autoscroller$AutoScrollTimerAction.actionPerformed(Autoscroller.java:52)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.