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

Solutions on the web

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
via Oracle Community by 807543, 1 year ago
component must be showing on the screen to determine its location
via Netbeans Bugzilla by luigi, 4 months ago
component must be showing on the screen to determine its location
via Netbeans Bugzilla by isullivan, 4 months ago
component must be showing on the screen to determine its location
via Oracle Community by 807587, 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:1237)
at java.awt.Component.getLocationOnScreen(Component.java:1211)
at javax.swing.Autoscroller.mouseDragged(Autoscroller.java:77)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:2290)
at java.awt.Component.processEvent(Component.java:3543)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2446)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2200)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2120)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:921)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 month ago

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