# How to change visibility during a event script to hide the table that is updating?

**URL:** <https://forum.inductiveautomation.com/t/how-to-change-visibility-during-a-event-script-to-hide-the-table-that-is-updating/112875>\
**Category:** Ignition\
**Tags:** scripting, vision\
**Created:** [December 17, 2025, 9:05pm UTC](https://forum.inductiveautomation.com/t/how-to-change-visibility-during-a-event-script-to-hide-the-table-that-is-updating/112875 "2025-12-17T21:05:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 17, 2025, 9:26pm UTC](https://forum.inductiveautomation.com/t/how-to-change-visibility-during-a-event-script-to-hide-the-table-that-is-updating/112875/3 "2025-12-17T21:26:46Z")

</div>

A bit of clarification:

Your event script runs in the foreground, and Java Swing is single threaded for all component updates. Which means your attempts to hide or alter a component will not be **drawn** until you give up the CPU (finish your event script).

Long old thread here, but still valid:

> [@Update GUI via Asynchronous thread](https://forum.inductiveautomation.com/t/update-gui-via-asynchronous-thread/9666):
>
> I’ve got a script I am experimenting with that can take a lot of time to execute, so I now use the system.util.invokeAsynchronous to run the script in a separate thread to keep the GUI from locking up. I am using the asynchronous thread to copy files from one place to another, and I would like to show the progress of the file copy with a progress bar. How would I go about this? I am importing a few python libraries to do this. import shutil def fileTransfer(): path = system.file.openFile() …

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-change-visibility-during-a-event-script-to-hide-the-table-that-is-updating/112875)._
