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