# Overlapping images in an URCap

**URL:** https://forum.universal-robots.com/t/overlapping-images-in-an-urcap/14851
**Category:** Java
**Created:** [June 11, 2021, 9:59am UTC](https://forum.universal-robots.com/t/overlapping-images-in-an-urcap/14851 "2021-06-11T09:59:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![anon25659016](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon25659016](https://forum.universal-robots.com/u/anon25659016)
#### Post date: [June 11, 2021, 9:59am UTC](https://forum.universal-robots.com/t/overlapping-images-in-an-urcap/14851/1 "2021-06-11T09:59:17Z")

</div>

Hello everybody:

I’m learning how to use Java Swing and UR Cap SDK, slowly making some progress. I’m trying to make a Program Node in a URCap. I am able to manage variables, nodes, waypoints… even I found out how to insert mages.

Now, I want to know if it’s possible for a image to overlap another image below in the View of this Program Node. I’ve been doing some research, but I do not have enough knowledge about Java’s Components (Jpanels, Boxes, etc…) and I do not really understand how they exactly work.

 ![Overlapping_images](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/a/addc670d4d9db43d270cff05727deda4beba3445.png)

A little help, please?

---

<div class="post-metadata">

### Author: ![cg1](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@cg1](https://forum.universal-robots.com/u/cg1)
#### Post date: [June 11, 2021, 12:34pm UTC](https://forum.universal-robots.com/t/overlapping-images-in-an-urcap/14851/2 "2021-06-11T12:34:21Z")

</div>

> [@anon25659016](#):
>
> Now, I want to know if it’s possible for a image to overlap another image below in the View of this Program Node. I’ve been doing some research, but I do not have enough knowledge about Java’s Components (Jpanels, Boxes, etc…) and I do not really understand how they exactly work.

Hi Jcosta..  
I think what you are looking for is a layredPane..  
remember to give it a size as there default size is zero, and you will therefore not see anything unless you give it a size.

> **[How to Use Layered Panes (The Java™ Tutorials \>        
            Creating...](https://docs.oracle.com/javase/tutorial/uiswing/components/layeredpane.html)**
>
> This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components

---

<div class="post-metadata">

### Author: ![anon25659016](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@anon25659016](https://forum.universal-robots.com/u/anon25659016)
#### Post date: [June 14, 2021, 3:01pm UTC](https://forum.universal-robots.com/t/overlapping-images-in-an-urcap/14851/3 "2021-06-14T15:01:16Z")

</div>

This seems to be the right track. Thank you! 😀

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/system/32/1_2.png) [@system](https://forum.universal-robots.com/u/system)
#### Post date: [June 16, 2021, 3:01pm UTC](https://forum.universal-robots.com/t/overlapping-images-in-an-urcap/14851/4 "2021-06-16T15:01:30Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
