DEV TP02
This commit is contained in:
16
DEV/DEV3.1/TP02/Part2/WindowClosedEvent.java
Normal file
16
DEV/DEV3.1/TP02/Part2/WindowClosedEvent.java
Normal file
@@ -0,0 +1,16 @@
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
|
||||
public class WindowClosedEvent extends WindowAdapter {
|
||||
|
||||
private ImageWindow window;
|
||||
|
||||
public WindowClosedEvent(ImageWindow window) {
|
||||
this.window = window;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowClosing(WindowEvent event) {
|
||||
(new CloseVerificationWindow(this.window)).setVisible(true);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user