SourceForge.net Logo

 

GraphApplet1

Step 8 Add more components

Now let's add the rest of the components that we will need. As before, use Choose Bean, type the first few letters of the component type, select it from the list, click OK, drop it onto the applet, then accept a name for it. Add the following components:

  1. WCMLimitControlPanelBean, drop it on the East part of the applet. This will create a panel on the applet that the user can use to zoom in and out.
  2. WCMDisplayCanvasBean, drop it on the Center part of the applet. This will create a white rectangle, called the display canvas, on the applet where the graph will go. 
  3. WCMAxesBean, drop it onto the display canvas. 
  4. WCMGraph1DBean, drop it onto the display canvas.

You should then see something like the following:

add components to applet

We also need to link the limit control panel and the display canvas. To do this, click on the limit control panel and switch to the Properties tab. Click on the canvas1 property's line, click the drop-down arrow, and select WCMDisplayCanvasBean, then press Enter.

connect limit control panel and display canvas
 

[Prev][Next]
[WebCompMath] [Examples] [GraphApplet1] [FunctionComposition]