I think this problem has a simple solution, but I couldn't solve it.
For example, I am counting lines of text file.
Also jPanel have jTextField1, jButton. jButton adds dynamic jTextFields.
Now I am loading contents of text file to jTextFields.
And jButton.doClick() depends from line numbers.
For example in this code:
So jButton.doClick() adds 3 dynamic jTextFields, but as 1st line on text file is value of jTextField1, how can I decrement it for linenumber-1?