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

**URL:** <https://forum.universal-robots.com/t/combobox-in-toolbar-not-working-with-polyscope-5-8-3-in-robot/10133>\
**Category:** Java\
**Created:** [November 19, 2020, 3:32pm UTC](https://forum.universal-robots.com/t/combobox-in-toolbar-not-working-with-polyscope-5-8-3-in-robot/10133 "2020-11-19T15:32:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.pamarthi](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@b.pamarthi](https://forum.universal-robots.com/u/b.pamarthi)\
**Post date:** [November 19, 2020, 3:32pm UTC](https://forum.universal-robots.com/t/combobox-in-toolbar-not-working-with-polyscope-5-8-3-in-robot/10133/1 "2020-11-19T15:32:55Z")

</div>

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](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/f/f15ff586d595300e623f5a7d253f12458431abc6.jpeg)

The below is a non working screenshot from robot (5.8.3)  
 ![notworking](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/a/a6b171180642df5d3c3ad17b7aaa7609636e270e.jpeg)

---

<div class="post-metadata">

**Author:** ![b.pamarthi](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@b.pamarthi](https://forum.universal-robots.com/u/b.pamarthi)\
**Post date:** [March 29, 2021, 6:59am UTC](https://forum.universal-robots.com/t/combobox-in-toolbar-not-working-with-polyscope-5-8-3-in-robot/10133/2 "2021-03-29T06:59:23Z")

</div>

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.
