Hi, I was wondering if there is a way to set jbutton to execute the equivalent of setdefaultcloseoperation (JFrame.DISPOSE_ON_CLOSE), because I don’t understand how the frame object has the right to collect, if it still has listeners, when the frame is set invisible, I can send the code if it does not make sense.
source
share