The Essential JViews Framework > Framework JavaBeans > Creating a Simple Applet Using ILOG JViews Beans > Configuring the toolbar

You may configure the toolbar in different ways. You can:

For example, the toolbar has a selectInteractor property that allows you to change the selection interactor used when the user clicks on the Select button icon. You can modify the properties of the selection interactor Bean to define the type of selection you need. For example, you may want to disable the editing capability.

To do this:

  1. Click an IlvSelectInteractor Bean images/IlvSelectInteractorColor16.gif on the toolbar and drag it into the form designer.

images/step937.gif

  1. Set its EditionAllowed property to false as seen below.

images/step10.gif

Figure 3.10 Customizing the Selection Interactor.
You are now going to replace the default selection interactor used in the toolbar by setting the SelectInteractor property of the ilvJManagerViewControlBar1.
  1. Select the ilvJManagerViewControlBar1 object so that its property sheet is active.
  2. Change the value of the SelectInteractor property to ilvSelectInteractor1 as seen below:

images/step11.gif

Figure 3.11 Replacing the Default Selection Interactor

Result

Compile the project. You have created a Java application without writing a single line of code.

Note
 In this example, you have added interaction to the view by means of the control toolbar. You could also directly set an interactor Bean such as the IlvSelectInteractor on the manager view by using the interactor property of the IlvManagerView.