# Any way to replicate "Other Border" on components like the Dropdown List?

**URL:** <https://forum.inductiveautomation.com/t/any-way-to-replicate-other-border-on-components-like-the-dropdown-list/35683>\
**Category:** Ignition\
**Created:** [June 15, 2020, 11:31pm UTC](https://forum.inductiveautomation.com/t/any-way-to-replicate-other-border-on-components-like-the-dropdown-list/35683 "2020-06-15T23:31:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 16, 2020, 12:31am UTC](https://forum.inductiveautomation.com/t/any-way-to-replicate-other-border-on-components-like-the-dropdown-list/35683/2 "2020-06-16T00:31:49Z")

</div>

Not a complete working example, but toggling between the two states could be done with something like this:

```auto
from javax.swing import BorderFactory
from javax.swing.border import CompoundBorder

target = event.source.parent.getComponent("Dropdown")
# Add an outer red line border
target.border = BorderFactory.createCompoundBorder(BorderFactory.createLineBorder(system.gui.color(255, 0, 0), 3), target.border)

# Reset to the original border
if isinstance(target.border, CompoundBorder):
	target.border = target.border.insideBorder

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/any-way-to-replicate-other-border-on-components-like-the-dropdown-list/35683)._
