[Resolvido]Exception: component must be showing on the screen to determine its location

Bom Dia a Tdos…to com um problemão aqui, estou tentanto setar um model em um combobox e ta dando um erro q eu não consigo descobrir o pq…

 java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
	at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source)
	at java.awt.Component.getLocationOnScreen(Unknown Source)
	at javax.swing.JPopupMenu.show(Unknown Source)
	at javax.swing.plaf.basic.BasicComboPopup.show(Unknown Source)
	at javax.swing.plaf.basic.BasicComboBoxUI.setPopupVisible(Unknown Source)
	at javax.swing.JComboBox.setPopupVisible(Unknown Source)
	at br.com.is.commons.ui.combobox.AutoCompletion.insertString(Unknown Source)
	at javax.swing.text.AbstractDocument.replace(Unknown Source)
	at javax.swing.text.JTextComponent.setText(Unknown Source)
	at javax.swing.plaf.metal.MetalComboBoxEditor$1.setText(Unknown Source)
	at javax.swing.plaf.basic.BasicComboBoxEditor.setItem(Unknown Source)
	at javax.swing.JComboBox.configureEditor(Unknown Source)
	at javax.swing.plaf.basic.BasicComboBoxUI$Handler.propertyChange(Unknown Source)
	at javax.swing.plaf.basic.BasicComboBoxUI$PropertyChangeHandler.propertyChange(Unknown Source)
	at de.muntjak.tinylookandfeel.TinyComboBoxUI$TinyPropertyChangeListener.propertyChange(TinyComboBoxUI.java:95)
	at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at java.awt.Component.firePropertyChange(Unknown Source)
	at javax.swing.JComboBox.setModel(Unknown Source)
	at br.com.is.isenterprise.lab.ui.report.JPanelReportMapaTrabalho.getJComboBoxAgruparPor(JPanelReportMapaTrabalho.java:765)
	at br.com.is.isenterprise.lab.ui.report.JPanelReportMapaTrabalho.getJPanelBorder(JPanelReportMapaTrabalho.java:290)
	at br.com.is.isenterprise.lab.ui.report.JPanelReportMapaTrabalho.getJPanel(JPanelReportMapaTrabalho.java:276)
	at br.com.is.isenterprise.lab.ui.report.JPanelReportMapaTrabalho.initialize(JPanelReportMapaTrabalho.java:201)
	at br.com.is.isenterprise.lab.ui.report.JPanelReportMapaTrabalho.<init>(JPanelReportMapaTrabalho.java:190)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at br.com.is.isenterprise.ISEnterprise.getInstance(ISEnterprise.java:670)
	at br.com.is.isenterprise.ISEnterprise.openReport(ISEnterprise.java:646)
	at br.com.is.isenterprise.ISEnterprise.openCommandItem(ISEnterprise.java:597)
	at br.com.is.isenterprise.ISEnterprise.treeAction(ISEnterprise.java:697)
	at br.com.is.isenterprise.shared.ui.MenuCreator$1.mouseReleased(MenuCreator.java:272)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

set:

jComboBoxAgruparPor.setModel(new DefaultComboBoxModel(SQLQueryMapaTrabalho.AGRUPAR_POR_INDIVIDUAL)); 

e só acontece quando tento inicializar a tela com esse model, se a tela for inicializada com outro model e no decorrer da execução eu quiser trocar ela aceita de boua…

Aparentemente o seu look&feel está tentando redimensionar a combo com base no conteúdo.

Como a combobox ainda não está visível, ele não sabe como fazer o redimensionamento, e dá o erro. O erro, por sí só, é bem descritivo:
“o componente deve estar sendo exibido na tela para conserguir determinar a sua posição.”

era isso mesmo ViniGodoy…

foi só eu começar a setar o model depois de inserir na tela q deu certo…

vlllwww