How to create block programatically

component_component_block
How to create block like this is it possible?

I mean How to write Java code programaticalIy for this block

@varsha_naik There is no Java code associated with this block. It is a reference to the instance called Button1. Imagine your Java code as this:

Button Button1 = new Button(Screen1);  // Created by the designer
Button1  // The block in question
1 Like