Button with java

2 messages - 631 views

Hello, I'm starting with Kuix and I would like to know how to add an backrground image or a border image to a button through Java code.

Thanks for the time you will spend or not helping me.

I think that the right way to do this in Kuix is to use the CSS properties of the button object. Snippets of documentation:

border-color - No Define the border color. The value is an array of 4 colors values (like color property). Syntax : <top> <right> <bottom> <left>. If all the values are the same, you can specify only one value.

bg-image - No Define the background images. The value is a liste of image files path separated by a '|'.

bg-color - No

Define the background color. The value is a color like color property.

nii amon