import java.awt.*; public class SpellList extends List { private ClientThread ct; SpellList(int i, boolean b, ClientThread c) { super(i,b); ct = c; } /** * Callback function that reacts on selection of an item */ public boolean handleEvent(Event event) { switch(event.id) { case Event.LIST_SELECT: ct.spellSelect(event); return true; } return false; } }