Write code to create a JMenuItem with "Hello" as its displayed text (when it is
a choice in a menu) but with "Bye" as its action command.
If you want to change the action command for a JButton, use the method
setActionCommand. What method do you use to change the action command
for a JMenuItem?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here