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

Spring JIRA | Henry Szetu | 1 decade ago
  1. 0

    I have a form that has several tabs, and there are several combo boxes on the different tabs. Some of the combo box list data is filled based on what info is specified on the first tab. When the certain info is filled, the data in the eventlist for the combo box in some tabs changes. And I got this exception: 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 javax.swing.JComboBox.setPopupVisible(JComboBox.java:790) 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 javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160) 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)

    Spring JIRA | 1 decade ago | Henry Szetu
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  2. 0

    I have a form that has several tabs, and there are several combo boxes on the different tabs. Some of the combo box list data is filled based on what info is specified on the first tab. When the certain info is filled, the data in the eventlist for the combo box in some tabs changes. And I got this exception: 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 javax.swing.JComboBox.setPopupVisible(JComboBox.java:790) 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 javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160) 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)

    Spring JIRA | 1 decade ago | Henry Szetu
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  3. 0

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

    Stack Overflow | 3 years ago | springcorn
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.awt.IllegalComponentStateException when I click on JComboBox in JTable problem

    Stack Overflow | 6 years ago | Almira Bojani
    java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
  6. 0

    java.awt.IllegalComponentStateException error with JComboBox

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

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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
      JComboBox.setPopupVisible
      1. java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:1507)
      2. java.awt.Component.getLocationOnScreen(Component.java:1481)
      3. javax.swing.JPopupMenu.show(JPopupMenu.java:921)
      4. javax.swing.plaf.basic.BasicComboPopup.show(BasicComboPopup.java:177)
      5. javax.swing.plaf.basic.BasicComboBoxUI.setPopupVisible(BasicComboBoxUI.java:927)
      6. javax.swing.JComboBox.setPopupVisible(JComboBox.java:790)
      6 frames
    3. org.springframework.richclient
      ComboBoxAutoCompletion.insertString
      1. org.springframework.richclient.list.ComboBoxAutoCompletion.insertString(ComboBoxAutoCompletion.java:228)
      1 frame
    4. Java RT
      AbstractListModel.fireIntervalRemoved
      1. javax.swing.text.AbstractDocument.replace(AbstractDocument.java:668)
      2. javax.swing.text.JTextComponent.setText(JTextComponent.java:1403)
      3. javax.swing.plaf.basic.BasicComboBoxEditor.setItem(BasicComboBoxEditor.java:48)
      4. javax.swing.JComboBox.configureEditor(JComboBox.java:1340)
      5. javax.swing.plaf.basic.BasicComboBoxUI$ListDataHandler.contentsChanged(BasicComboBoxUI.java:537)
      6. javax.swing.plaf.basic.BasicComboBoxUI$ListDataHandler.intervalRemoved(BasicComboBoxUI.java:551)
      7. javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
      7 frames
    5. org.springframework.richclient
      DynamicComboBoxListModel.valueChanged
      1. org.springframework.richclient.list.ListListModel.clear(ListListModel.java:156)
      2. org.springframework.richclient.list.ComboBoxListModel.clear(ComboBoxListModel.java:113)
      3. org.springframework.richclient.list.DynamicComboBoxListModel.doAdd(DynamicComboBoxListModel.java:131)
      4. org.springframework.richclient.list.DynamicComboBoxListModel.valueChanged(DynamicComboBoxListModel.java:127)
      4 frames
    6. org.springframework.binding
      AbstractValueModel.fireValueChanged
      1. org.springframework.binding.value.support.AbstractValueModel.fireValueChanged(AbstractValueModel.java:70)
      1 frame
    7. javabeans.list
      EventListValueHolder$2.listChanged
      1. javabeans.list.EventListValueHolder.access$000(EventListValueHolder.java:23)
      2. javabeans.list.EventListValueHolder$2.listChanged(EventListValueHolder.java:38)
      2 frames
    8. Glazed Lists
      BasicEventList.clear
      1. ca.odell.glazedlists.event.ListEventPublisher.fireEvent(ListEventPublisher.java:134)
      2. ca.odell.glazedlists.event.ListEventAssembler.fireEvent(ListEventAssembler.java:298)
      3. ca.odell.glazedlists.event.ListEventAssembler.commitEvent(ListEventAssembler.java:262)
      4. ca.odell.glazedlists.BasicEventList.clear(BasicEventList.java:194)
      4 frames
    9. appclient.contract
      ContractModel$8.propertyChange
      1. appclient.contract.ContractModel$8.propertyChange(ContractModel.java:1683)
      1 frame
    10. Java RT
      PropertyChangeSupport.firePropertyChange
      1. java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:330)
      2. java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:257)
      2 frames