| getAlignment() | ใช้คืนค่าวิธีการเรียง component ว่าเป็นลักษณะใด |
|---|
method:getAlignment ();
return type:int
content:ใช้คืนค่าวิธีการเรียง component ว่าเป็นลักษณะใด
example:FlowLayout flowlayout = new FlowLayout ( FlowLayout.RIGHT ); if ( flowlayout.getAlignment () == FlowLayout.RIGHT ) { System.out.println ( "alignment is right." ); }