JComboBox CellEditor And “component must be showing on the screen to determine its location” Error

If you use a JComboBox as a cell editor in a JTable and you get this error message “component must be showing on the screen to determine its location”, chances are your cell editor is inherited from DefaultCellEditor. Thomas Bang saved us all the trouble in trying to figure out how to make a workaround for this problem by creating a ComboBoxCellEditor class inheriting from AbstractCellEditor.

Pretty cool. This class actually did the trick.

Related Posts Plugin for WordPress, Blogger...

2 comments

Leave a Reply

Your email address will not be published. Required fields are marked *