| setLocation() | ใช้กำหนด ตำแหน่ง ของ component ( ใช้ในการเลื่อนตำแหน่งของ component ) |
|---|
method:setLocation ( x, y );
return type:void
content:ใช้กำหนด ตำแหน่ง ของ component ( ใช้ในการเลื่อนตำแหน่งของ component )
example:JButton button = new JButton ( "cancel" ); button.setBounds ( 0, 0, 100, 30 ); button.setLocation ( 30, 0 );