java.lang.IllegalArgumentException: illegal component position

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 Oracle Community by 807549, 1 year ago
via Oracle Community by 843804, 1 year ago
illegal component position
via Oracle Community by 843805, 1 year ago
via Oracle Community by 843805, 1 year ago
illeg al component position
via Coderanch by Suman Mummaneni, 1 year ago
illegal component position
via Stack Overflow by Abilash Ravichandran
, 2 years ago
java.lang.IllegalArgumentException: illegal component position
at java.awt.Container.addImpl(Container.java:628)
at javax.swing.JLayeredPane.addImpl(JLayeredPane.java:202)
at java.awt.Container.add(Container.java:320)
at javax.swing.plaf.basic.BasicToolBarUI.setFloating(BasicToolBarUI.java:802)
at javax.swing.plaf.basic.BasicToolBarUI.floatAt(BasicToolBarUI.java:999)
at javax.swing.plaf.basic.BasicToolBarUI$DockingListener.mouseReleased(BasicToolBarUI.java:1212)
at java.awt.Component.processMouseEvent(Component.java:5093)
at java.awt.Component.processEvent(Component.java:4890)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3598)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1585)
at java.awt.Component.dispatchEvent(Component.java:3439)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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