GridBagLayout
This layout is more flexible than the grid layout. This layout allows the components span over multiple rows and columns. This layout also enables us to resize the components by assigning appropriate weights to them. The following snippet assigns the gridbag layout : gridbagLayout lay = new GridLayout (); setLayout (lay ); The data members … Read more…