# Button Round Corners

**URL:** <https://forum.inductiveautomation.com/t/button-round-corners/43984>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 2, 2021, 11:23am UTC](https://forum.inductiveautomation.com/t/button-round-corners/43984 "2021-03-02T11:23:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniele1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/daniele1/32/31531_2.png) [@daniele1](https://forum.inductiveautomation.com/u/daniele1)\
**Post date:** [March 2, 2021, 11:23am UTC](https://forum.inductiveautomation.com/t/button-round-corners/43984/1 "2021-03-02T11:23:41Z")

</div>

Hi,  
is there any way to customize a button? In my case I would like to have round corners, I want to replicate the old “home made” custom button (that is a group of different images and labels with multiple scripts and style customizers) with something simpler that has the same graphics.  
Above is the new button and below the old one.  
 ![Reset_Allarme_button](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/25d55b6094f0df99f46c5ab2e052b261f52fa28f.png)  
Thanks  
Daniele

---

<div class="post-metadata">

**Author:** ![Tom.R](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@Tom.R](https://forum.inductiveautomation.com/u/Tom.R)\
**Post date:** [March 3, 2021, 8:08pm UTC](https://forum.inductiveautomation.com/t/button-round-corners/43984/2 "2021-03-03T20:08:55Z")

</div>

You could use the rectangle tool, round the corners, and write a script to do your action on mouse released.

---

<div class="post-metadata">

**Author:** ![fabiano.moreira.amar](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@fabiano.moreira.amar](https://forum.inductiveautomation.com/u/fabiano.moreira.amar)\
**Post date:** [September 25, 2023, 10:00pm UTC](https://forum.inductiveautomation.com/t/button-round-corners/43984/3 "2023-09-25T22:00:13Z")

</div>

How can this be done? I liked the idea but trying to understand how to do it?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 26, 2023, 4:08am UTC](https://forum.inductiveautomation.com/t/button-round-corners/43984/4 "2023-09-26T04:08:11Z")

</div>

> [@fabiano.moreira.amar](#):
>
> trying to understand how to do it?

You're in luck! I just happened to have the solution to this bookmarked:

> [@Customised button as an SVG file](https://forum.inductiveautomation.com/t/customised-button-as-an-svg-file/53745/6):
>
> Rounded Edges aren’t too difficult, though I’m not sure it’s really worth the effort, depending on the size of your project. For posterities sake: In the internalFrameActivated event of a window you can place this code (I put mine in a momentary button for ease of use, so this will not work as is in an internalFrame event, the code for getting a reference to the button will need to change. from java.awt import Insets from javax.swing.border import CompoundBorder class RoundedBorder(Compound…

---

<div class="post-metadata">

**Author:** ![fabiano.moreira.amar](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@fabiano.moreira.amar](https://forum.inductiveautomation.com/u/fabiano.moreira.amar)\
**Post date:** [September 26, 2023, 10:03pm UTC](https://forum.inductiveautomation.com/t/button-round-corners/43984/5 "2023-09-26T22:03:05Z")

</div>

Thanks a lot Justin!
