The Essential JViews Framework > Getting Started with JViews Framework > Step 2 - View Interaction > Adding the selectInteractor Field

To be able to use the class IlvSelectInteractor, we must first import the ILOG JViews packages that contain the interactors, servlets and events:

import ilog.views.interactor.*;
import ilog.views.util.servlet.event.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

then, we add the selectInteractor and button instance variables into Sample2:

public class Sample2 extends JFrame 
{ 
  IlvManager manager; 
  IlvManagerView mgrview;
  IlvSelectInteractor selectInteractor;
  JButton button;
  ....
}