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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -