java - windowDeactivated not working on Mac -


i have following code:

public audiodialog() {          this.addwindowlistener(new windowlistener() {           public void windowactivated(windowevent e) {            }            public void windowclosed(windowevent e) {            }            public void windowclosing(windowevent e) {            }            public void windowdeactivated(windowevent e) {               system.out.println("deactivated");               dispose();           }                         public void windowdeiconified(windowevent e) {            }            public void windowiconified(windowevent e) {            }            public void windowopened(windowevent e) {            }       });      } 

windowdeactivated correctly executed under windows when jdialog loses focus, under mac nothing happens.

can tell me i'm doing wrong?


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -