clean structure

This commit is contained in:
2026-02-10 18:05:13 +01:00
parent 5f2d805875
commit 4b4a0a3597
33 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JOptionPane;
public class GridWindowClosedEvent extends WindowAdapter {
private GridWindow window;
public GridWindowClosedEvent(GridWindow window) {
this.window = window;
}
@Override
public void windowClosing(WindowEvent event) {
int result = JOptionPane.showConfirmDialog(this.window, "Are you sure you want to close this window?", "Close current window", JOptionPane.YES_NO_OPTION);
if(result == JOptionPane.YES_OPTION) this.window.dispose();
}
}