GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Oracle  >  Java

 Print  |  
Question:  What is the difference between getActionCommand() And getSource() on event object?




September 09, 2006 09:05:05 #1
 Shirshendu   Member Since: Visitor    Total Comments: N/A 

RE: What is the difference between getActionCommand() ...
 
The getActionCommand() method returns an String associated with that Component set through the setActionCommand(), whereas the getSource() method returns an Object of the Object class specifying the source of the event.
     

 

Back To Question