# Z-order

**URL:** <https://forum.inductiveautomation.com/t/z-order/8735>\
**Category:** General Discussion\
**Created:** [July 16, 2014, 10:48am UTC](https://forum.inductiveautomation.com/t/z-order/8735 "2014-07-16T10:48:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [July 16, 2014, 10:48am UTC](https://forum.inductiveautomation.com/t/z-order/8735/1 "2014-07-16T10:48:42Z")

</div>

Any way to bring an object in front of the user setting the Z-order?  
Thanks!

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [July 16, 2014, 2:00pm UTC](https://forum.inductiveautomation.com/t/z-order/8735/2 "2014-07-16T14:00:48Z")

</div>

In the designer you can use the toolbar buttons that look like stacks and have red arrows indicating direction on them.

At run time… I don’t know. I’m guessing you could use Java to change the z-order of the underlying Java object.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 16, 2014, 2:14pm UTC](https://forum.inductiveautomation.com/t/z-order/8735/3 "2014-07-16T14:14:38Z")

</div>

Yes, the z-order can be set dynamically through scripting. Containers have the method “setComponentZOrder(Component comp, int index)”

More information here: [docs.oracle.com/javase/7/docs/ap … ,%20int%29](http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html#setComponentZOrder%28java.awt.Component,%20int%29)
