# Script wrapping in Java Swing

**URL:** <https://forum.universal-robots.com/t/script-wrapping-in-java-swing/12974>\
**Category:** Java\
**Created:** [March 16, 2021, 1:44pm UTC](https://forum.universal-robots.com/t/script-wrapping-in-java-swing/12974 "2021-03-16T13:44:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vineeth1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/vineeth1/32/1774_2.png) [@vineeth1](https://forum.universal-robots.com/u/vineeth1)\
**Post date:** [March 16, 2021, 2:50pm UTC](https://forum.universal-robots.com/t/script-wrapping-in-java-swing/12974/3 "2021-03-16T14:50:05Z")

</div>

Hi Sam,

> [@URCap Sample: Script Wrapper URCap](https://forum.universal-robots.com/t/urcap-sample-script-wrapper-urcap/1196):
>
> Script Wapper URCap Description of functionality: This URCap wraps the contents of a selected script file into a program node in PolyScope. The user can select which script file to wrap, and select a decent image to show instead. User must place a script file (.script) and optionally image (.jpg, .jpeg, .png .bmp) in the /programs/ folder on a real robot, or /home/ur/ursim-current/programs/ in a URSim. The URCap checks the robots serial number, to decide what folder to look in. The sample d…

In this example, Jacob gets the script files from root folder and wraps them in the program node. But this example is an HTML one. I would like to know if there is one with Swing.

Thanks,

---

_[View the full topic](https://forum.universal-robots.com/t/script-wrapping-in-java-swing/12974)._
