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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -