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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -