Skip to content

Commit

Permalink
Put back accidentally deleted windowlistener
Browse files Browse the repository at this point in the history
  • Loading branch information
bubblobill committed Dec 11, 2024
1 parent f20758f commit 2970e71
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ public GenericDialog(String title, Frame parent, JPanel panel, boolean modal) {
setLayout(new GridLayout());
JScrollPane scrollPane = new JScrollPane(this.panel);
add(scrollPane);

addWindowListener(
new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
closeDialog();
}
});
addComponentListener(
new ComponentAdapter() {
private void placeButtons() {
Expand Down

0 comments on commit 2970e71

Please sign in to comment.