this question was asked : Disposing JFrame by clicking from an inner JPanel
and people provided answers that i didn't quite understand so the question is what does this actually do :
((Window) getRootPane().getParent()).dispose();
could some one explain it to me?