SyntaxFix
Write A Post
Hire A Developer
Questions
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.