The Essential JViews Framework > Getting Started with JViews Framework > Step 3 - Using Events > Registering the Listener

It is not enough to implement the interface. We must not forget to register this new listener with the view. This is done by calling the addInteractorListener method in the init method:

...
    manager = new IlvManager();
    try {
      manager.read("usa.ivl");
    } catch (Exception e) {}
    mgrview = new IlvManagerView(manager);
    setLayout(new BorderLayout(0,0));
    getContentPane().add(new IlvJScrollManagerView(mgrview),
                         BorderLayout.CENTER);
    createButtons();
    mgrview.addInteractorListener(this);
 ...