| getLocation() | ใช้คืนค่า ตำแหน่ง ของ component ในรูปแบบของ Point |
|---|
method:getLocation ();
return type:Point
content:ใช้คืนค่า ตำแหน่ง ของ component ในรูปแบบของ Point
example:JButton button = new JButton ( "cancel" ); button.setBounds ( 0, 0, 100, 30 ); Point point = button.getLocation ();