/////////////////////EXPOZOOM//////////////////////////
public class ExpoZoom extends AppletApp
{
GraphWindow gw=new GraphWindow();
ParamSetManager psm=gw.getParamSetManager();
Variable b=new Variable("b");
public ExpoZoom()
{
b.setValue(1);
psm.addParameter(b);psm.noNewParamButton();
gw.addGraph("y=1+x",Color.blue);
gw.addGraph("y=b^x",Color.red);
gw.getRegion().moveTo(0,1);
setBackground(new Color(255,255,220));
setSize(640,480);setLayout(null);
add(gw);gw.setBounds(0,0,400,480);
add(psm);psm.setBounds(420,100,220,230);
Label instructions1 = new Label("Vary b until the red graph of
y=b^x");
Label instructions2 = new Label("is tangent to the blue line y=1+x.");
Label instructions3 = new Label("(Zoom in closely for more accuracy)");
add(instructions1);instructions1.setBounds(420,20,200,20);
add(instructions2);instructions2.setBounds(420,40,200,20);
add(instructions3);instructions3.setBounds(420,60,200,20);
}//end constructor
public static void main(String[] args) {
AppletApp a=new ExpoZoom();
frameIt(a); }
}//enddef class ExpoZoom///////////////////////////////////
///////////////////////////////////////////////////////////
///////////////////////////////////////////////