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 -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -