I'm currently on NetBeans lessons on how to create Java programs with GUI. I've noticed in several GUI controls the text field and the combobox, the "Action" and the "Name" properties are always present. What is the purpose of these properties and how can I use them? For example, I'll use a text field here:
JTextField aTextField = new JTextField();
String act = "aksyon";
JTextField.setActionCommand(act);
What is the difference of setActionCommand() from setAction()? I thank you in advance for your help.