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 Spring JIRA by Henry Szetu, 1 year ago
component must be showing on the screen to determine its location
via Spring JIRA by Henry Szetu, 1 year ago
component must be showing on the screen to determine its location
via Stack Overflow by Almira Bojani
, 2 years ago
component must be showing on the screen to determine its location
via Oracle Community by 843805, 1 year ago
component must be showing on the screen to determine its location
via Oracle Community by 843805, 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.JPopupMenu.show(JPopupMenu.java:921)
at javax.swing.plaf.basic.BasicComboPopup.show(BasicComboPopup.java:177)
at javax.swing.plaf.basic.BasicComboBoxUI.setPopupVisible(BasicComboBoxUI.java:927)
at org.springframework.richclient.list.ComboBoxAutoCompletion.insertString(ComboBoxAutoCompletion.java:228)
at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:668)
at javax.swing.text.JTextComponent.setText(JTextComponent.java:1403)
at javax.swing.plaf.basic.BasicComboBoxEditor.setItem(BasicComboBoxEditor.java:48)
at javax.swing.JComboBox.configureEditor(JComboBox.java:1340)
at javax.swing.plaf.basic.BasicComboBoxUI$ListDataHandler.contentsChanged(BasicComboBoxUI.java:537)
at javax.swing.plaf.basic.BasicComboBoxUI$ListDataHandler.intervalRemoved(BasicComboBoxUI.java:551)
at org.springframework.richclient.list.ListListModel.clear(ListListModel.java:156)
at org.springframework.richclient.list.ComboBoxListModel.clear(ComboBoxListModel.java:113)
at org.springframework.richclient.list.DynamicComboBoxListModel.doAdd(DynamicComboBoxListModel.java:131)
at org.springframework.richclient.list.DynamicComboBoxListModel.valueChanged(DynamicComboBoxListModel.java:127)
at org.springframework.binding.value.support.AbstractValueModel.fireValueChanged(AbstractValueModel.java:70)
at javabeans.list.EventListValueHolder.access$000(EventListValueHolder.java:23)
at javabeans.list.EventListValueHolder$2.listChanged(EventListValueHolder.java:38)
at ca.odell.glazedlists.event.ListEventPublisher.fireEvent(ListEventPublisher.java:134)
at ca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:298)
at ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:262)
at ca.odell.glazedlists.BasicEventList.clear(BasicEventList.java:194)
at appclient.contract.ContractModel$8.propertyChange(ContractModel.java:1683)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:330)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:257)

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.