| getSource ( ) | ใช้คืนค่า ชื่อของ component ที่ทำให้เกิดเหตุการณ์ขึ้น |
|---|---|
| toString ( ) | ใช้คืนค่า รายละเอียด ของ component ที่ทำให้เกิดเหตุการณ์ขึ้น |
| getActionCommand ( ) | ใช้เหมือน method getSource ( ) |
method:getSource ( )
return type:Object
example:ใช้คืนค่า ชื่อของ component ที่ทำให้เกิดเหตุการณ์ขึ้น
method:toString ( )
return type:String
example:ใช้คืนค่า รายละเอียด ของ component ที่ทำให้เกิดเหตุการณ์ขึ้น
method:getActionCommand ( )
return type:String
example:ใช้เหมือน method getSource ( )