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
Post a Comment