| new GridLayout ( int_row, int_col, int_horizontal, int_vertical ); | ใช้สร้าง object gridlayout โดยจะมีจำนวนแถวและคอลัมน์ตามที่กำหนด |
|---|
method:new GridLayout ( int_row, int_col, int_horizontal, int_vertical );
return type:GridLayout
content:ใช้สร้าง object gridlayout โดยจะมีจำนวนแถวและคอลัมน์ตามที่กำหนด และมีการกำหนดระยะห่างระหว่าง cell ทั้งในแนวตั้งและแนวนอนด้วย
example:GridLayout gridlayout = new GridLayout ( 5, 10, 2, 2 );