cannot resolve symbol
symbol:class windowAdapter
location:class mydlg
addWindowListener(new windowAdapter()

(same error in line 11 and 46)
This is my code