| setAlignment() | ใช้กำหนดวิธีการเรียง component ว่าจะให้เป็นลักษณะใด คือ เริ่มจากซ้าย, เริ่มจากขวา หรือเริ่มจากตรงกลาง |
|---|
method:setAlignment ( flowlayout_constant );
return type:void
content:ใช้กำหนดวิธีการเรียง component ว่าจะให้เป็นลักษณะใด คือ เริ่มจากซ้าย, เริ่มจากขวา หรือเริ่มจากตรงกลาง
example:FlowLayout flowlayout = new FlowLayout (); flowlayout.setAlignment ( FlowLayout.RIGHT );