ComboBox in ToolBar (not working) with Polyscope 5.8.3 in robot

Hello URCap developers,

I wrote an URCap that has a combo box in tool bar.
I can see the combo box in the tool bar but it is always shown as empty and I used
combobox.setEnabled(false)
to disable the combo box and it didn’t worked as well in 5.8.3 polyscope of robot panel.
But it is working with 5.8.2, 5.9.3 and 5.9.4 polyscopes of robot panel.
I don’t quite understand why it is not working in only 5.8.3 version of polyscope.
I used 1.10.0 urcap sdk to develop my urcap.
Please see the screenshots for more and better understanding.
Can someone please explain me the reason for this problem.

Greetings,
Bhargav

The below is a working screenshot from robot
working

The below is a non working screenshot from robot (5.8.3)
notworking

I found the reason. It took 2 days for me to find the reason. But I still don’t understand why it is happening like this.
I wrote the Combobox in Installation contribution as it is easy to access from anywhere in the URCap. When I am calling the combo from ToolBar, it is responding but it is not updating. This behavior is occuring only in some polyscope versions. So, I moved the combobox code (creation) directly to ToolBar and it worked.
Not only JCombobox but this is also happening to JTable. All developers, Please make a note of this.
Instead of deleting the post, I am answering because this may help others.

1 Like