I am starting in java
I need to know more about
I need a command that reads the value of a variable or reads integers from a text file
thanx in advance
Here is all you need to know about the method setActionCommand()
in the javadocs . Now that we do that, I would rather use JButton
And please check the tutorial , this is the best thing you can do when learning a new programming language.