Action -Hörer für die Schaltfläche zum Schließen von Fenster Java
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));
Energetic Eland
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));