java - How to solve error about implementing inherited abstract class method? -


code-

new itemlistener() {   public void itemstatechanged(itemevent event){     if(event.getstatechange()==itemevent.selected)       pics.seticon(pic[box.getselectedindex()]);   } } 

i getting error,

the new type itemlistener(){} must implement inherited abstract class method itemlistener.itemstatechanged(itemevent)

assuming anonymous implementation of java.awt.event.itemlistener, should implement method itemstatechanged(itemevent e) - note lowercase i in api specification opposed upper case i in implementation.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -