# event.graphics.drawImage conflict?

**URL:** <https://forum.inductiveautomation.com/t/event-graphics-drawimage-conflict/67455>\
**Category:** Ignition\
**Created:** [December 9, 2022, 11:31pm UTC](https://forum.inductiveautomation.com/t/event-graphics-drawimage-conflict/67455 "2022-12-09T23:31:30Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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 12, 2022, 5:13pm UTC](https://forum.inductiveautomation.com/t/event-graphics-drawimage-conflict/67455/9 "2022-12-12T17:13:44Z")

</div>

Also, manipulating Swing components from a background thread can crash your whole application (Ignition Vision components are Swing subclasses). See this topic (and linked ones):

> [@Update progress bar from within a script](https://forum.inductiveautomation.com/t/update-progress-bar-from-within-a-script/21995):
>
> I have this script on a button to copy data to a PLC from a database. Since this script takes 10 - 20 seconds to run, i would like to have the progress bar show progress. Issue I have is the progress bar updates only when the script has completed. Is there anyway to get value outside of the script to update as the script is running?

---

_[View the full topic](https://forum.inductiveautomation.com/t/event-graphics-drawimage-conflict/67455)._
