# Dropdown isOpen

**URL:** <https://forum.inductiveautomation.com/t/dropdown-isopen/94950>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [August 21, 2024, 3:19pm UTC](https://forum.inductiveautomation.com/t/dropdown-isopen/94950 "2024-08-21T15:19:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 21, 2024, 3:50pm UTC](https://forum.inductiveautomation.com/t/dropdown-isopen/94950/5 "2024-08-21T15:50:53Z")

</div>

Better would be to create and add a custom `PopupMenuListener`:

> **[JComboBox (Java SE 17 & JDK 17)](https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/JComboBox.html#addPopupMenuListener(javax.swing.event.PopupMenuListener))**
>
> declaration: module: java.desktop, package: javax.swing, class: JComboBox

For example:

> [@Dropdown List Events](https://forum.inductiveautomation.com/t/dropdown-list-events/90537/4):
>
> I recommend either setting up a custom method or a library script to avoid redundancy. Example: [image] [image] Then on your propertyChange event handler, call the method anytime a selection change closes the dropdown [mouse selection] # handle slection changes that are triggered by the mouse if event.propertyName == 'selectedStringValue' and not event.source.popupVisible: event.source.filterNextDropdown() For the key released event handler the code would look something like this: if ev…

---

_[View the full topic](https://forum.inductiveautomation.com/t/dropdown-isopen/94950)._
