# GUI alignment swing

**URL:** https://forum.universal-robots.com/t/gui-alignment-swing/14718
**Category:** Java
**Created:** [June 4, 2021, 10:45am UTC](https://forum.universal-robots.com/t/gui-alignment-swing/14718 "2021-06-04T10:45:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anon2596383](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@anon2596383](https://forum.universal-robots.com/u/anon2596383)
#### Post date: [June 4, 2021, 10:45am UTC](https://forum.universal-robots.com/t/gui-alignment-swing/14718/1 "2021-06-04T10:45:56Z")

</div>

I am developing a urcap for the cb3 series.

I want to be able to test the swing code that I write before deploying on the simulator or robot.

My problem is that Universal Robot alters the implementation of the code I write.

An example  
Left is the view put into a Frame and show.  
Right is the UR3 simulator  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/0/099cc4792005b649a76743ac6d84ced6455b9306.png)

The implementation is very different.

My question:  
Is there any way to replica the implementation that is used of CB and E respectively?  
or  
Is there any way to change the implementation made by Universal Robot

Best  
Simon

I am really struggling to make good and fast UI with this problem

---

<div class="post-metadata">

### Author: ![sam.verity-hilton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sam.verity-hilton/32/6046_2.png) [@sam.verity-hilton](https://forum.universal-robots.com/u/sam.verity-hilton)
#### Post date: [June 7, 2021, 9:27am UTC](https://forum.universal-robots.com/t/gui-alignment-swing/14718/2 "2021-06-07T09:27:10Z")

</div>

This is down to something known as the `LookAndFeel`. A java application has behind it a `LookAndFeel` class which determines how objects appear on the user interface. To mimic how object appear on a robot in a separate application, you would need to find a version of the polyscope lookandfeel, which you can set as the active `LookAndFeel`. I’m afraid I dont know if this is something which is availble to URCap developers. I am not sure where you would be able to get hold of this file unfortunately however.
