jButton - Oval shape lazarus / 43-Android ---------------------------------------------------------------------- biologic · 2025-10-11 13:44 Hello How can I set the shape of a jButton to oval ? With this code : The buttons turn into an oval when I tap them. Not when the form is shown. I want them to turn into oval when the app starts. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);begin LoadButton.SetRoundCorner();LoadButton.SetRadiusRoundCorner(90);end; ---------------------------------------------------------------------- nicelybrewed · 2025-10-11 19:15 You need to set the SetRadiusRoundCorner of the button corner prior to calling SetRoundCorner so it applies with that radius value, this is why it only shows after you tap it currently, so try: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject); begin  LoadButton.SetRadiusRoundCorner(90);  LoadButton.SetRoundCorner(); end;