After wondering whether disposing my frame would return a null (if checked) I went ahead and tested it out. I've searched on dispose() but most of the articles I read just state when to use it, not what it actually does. I tried out the sample code, maybe my code is simply incorrect but if it's not. What does dispose() actually do inside the JVM?
If someone does find a link related to this, please post it so I can remove this question