java - Is it valid to instantiate windowListener interface? -


windowlistener interface? how instantiation valid per following? can not instantiate interface right?

windowlistener l1=new windowlistener() {          public void windowopened(windowevent e) {             // todo auto-generated method stub          }          public void windowiconified(windowevent e) {             // todo auto-generated method stub          }          public void windowdeiconified(windowevent e) {             // todo auto-generated method stub          }          public void windowdeactivated(windowevent e) {             // todo auto-generated method stub          }          public void windowclosing(windowevent e) {             // todo auto-generated method stub          }          public void windowclosed(windowevent e) {             // todo auto-generated method stub          }          public void windowactivated(windowevent e) {             // todo auto-generated method stub          }     }; 

this creating new anonymous class implements windowlistener interface.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -