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