Hi all. I have recently started out Java and have been experimenting with Swing. However, I have come across this problem I can't figure out.
The code below gives different results in every run. Sometimes gives 3 text fields, others 4, 5, 6, etc.. It's almost random. Why does this happen?
I know I could use the editor GUI for this, but since I will have to generate 81 text fields I think it's best to learn how to do it programatically.
Any help is greatly appreciated.