I am trying to have a custom combobox as a editor for a column in a table. For this I added a custom editor (I populate the combobox depending on the row). I want the combobox to be open (show the drop down) when the editor is first displayed.
I added a hirarchy change listener as follows ( I write in Jython but it is quite simple to transform Java to Jython and vice versa):
class _comboboxShow(HierarchyListener):
def hierarchyChanged(self, event):
if event.changeFlags & HierarchyEvent.SHOWING_CHANGED and \
event.component.isShowing():
event.component.showPopup()
However I only see a short flickering, meaning the popup appears to be opened, and then to be immediatly closed again. How do I keep it on screen?
Adding a FocusListener instead with
helped. I guess the refocusing closed the popup??