Why if I create a JFrame then the program still runs until (i.e) I close it with the small "exit button" of the window?
I looked for this answer and I failed. The only thing I guessed is that when I do "new JFrame()" it's like an special "new", that keeps a reference of the object in the EDT, so it will always be referenced (even if was an anonymous "new") and it's not going to be deleted by the garbage collector. Then as soon as the event of windows close is triggered, the object is dereferenced and destroyed.
That's my kind of guess... I'll appreciate some more accurate answer or any reference/link will be appreciatted.
Thanks