Page 2 :
1.4 Use of Layout Managers:, , , GridLayout:, , , , GridLayout lays out components in a two-dimensional, grid.When we instantiate a GridLayout, we define the, number of rows and columns., , , , The GridLayout is used to arrange the components in, rectangular grid. One component is displayed in each, rectangle., , DJ Sir
Page 3 :
1.4 Use of Layout Managers:, , , GridLayout:, , , , We must be specify, , (0,0), , (0,1), , (0,2), , number of rows and, columns of the grid., , , This is the ‘3 X 3’ grid., , DJ Sir, , (1,0), , (1,1), , (1,2), , (2,0), , (2,1), , (2,2)
Page 4 :
1.4 Use of Layout Managers:, , , GridLayout:, , DJ Sir
Page 5 :
1.4 Use of Layout Managers:, , , GridLayout:Constructors, , , , GridLayout( )-This form creates a single-column grid, layout. This constructor creates a grid layout with one, column per component in a row., , , , GridLayout(int numRows, int numColumns ) -The, second form creates a grid layout with the specified number, of rows and columns but no gaps between the components., , DJ Sir
Page 6 :
1.4 Use of Layout Managers:, , , GridLayout:Constructors, , 2X2, DJ Sir
Page 8 :
1.4 Use of Layout Managers:, , , GridLayout:Constructors, , , , Either numRows or numColumns can be zero., , , , Specifying numRows as zero allows for unlimited-length, columns., , DJ Sir
Page 9 :
1.4 Use of Layout Managers:, , , GridLayout:Constructors, , , , Specifying numColumns as zero allows for unlimitedlength rows., , DJ Sir
Page 10 :
1.4 Use of Layout Managers:, , , GridLayout :Example, , DJ Sir