B4J Question Set rounded corner for rectangle

bdunkleysmith

Active Member
Licensed User
Longtime User
I set the color of several rectangles in a particular application by using code like:

B4X:
Dim joRect As JavaObject = RinTeamFoulsRect
joRect.RunMethod("setFill", Array(fx.Colors.Red))

Now I want to make the rectangle have rounded corners and so tried:

B4X:
Dim joRect As JavaObject = GameClockRect   
joRect.RunMethod("setArcHeight", 30)
joRect.RunMethod("setArcWidth", 30)

but syntax I've used for the arc parameters is throwing errors.

Can someone please suggest the correct syntax?

Thanks,

Bryon
 
Top