Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception with JComboBox as Cell Editor  RSS feed

 
Dev Bhush
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using a JComboBox as a cell editor for a column in
a table extended from JTable.
The combo box works fine for the first time but throws the following exception on all subsequent clicks on any cell in that
column.
Have any of you seen this before ?
Thanks!

java.awt.IllegalComponentStateException: component must be showing on the
screen to determine its location
at java.awt.Component.getLocationOnScreen_NoTreeLock
(Component.java:1242)
at java.awt.Component.getLocationOnScreen(Component.java:1216)
at javax.swing.JPopupMenu.show(JPopupMenu.java:731)
at javax.swing.plaf.basic.BasicComboPopup.show(BasicComboPopup.java:123)
at javax.swing.plaf.basic.BasicComboPopup.togglePopup
(BasicComboPopup.java:805)
at
javax.swing.plaf.basic.BasicComboPopup$InvocationMouseHandler.mousePressed
(BasicComboPopup.java:442)
at java.awt.Component.processMouseEvent(Component.java:3714)
at java.awt.Component.processEvent(Component.java:3546)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2595)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2499)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.repostEvent
(BasicTableUI.java:438)
at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed
(BasicTableUI.java:466)
at java.awt.AWTEventMulticaster.mousePressed
(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed
(AWTEventMulticaster.java:220)
at java.awt.Component.processMouseEvent(Component.java:3714)
at java.awt.Component.processEvent(Component.java:3546)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2595)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2499)
at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:912)
at java.awt.Component.dispatchEvent(Component.java:2499)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:319)
at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!