I want to make my Java Application to call my own custom made function when the "close" cross button is pressed. as far as i see there may be no way since setDefaultCloseOperation
has no overloads at all.
Any idea how this can be achieved?
See Question&Answers more detail:os