/*File confidenceControlPanel.java */

/*File confidenceControlPanel.java  */
import java.awt.*;
import java.applet.*;
/**  
* This is the control panel for the confidence Class   		*
* @author Charles Stanton					*
* @version May 15 1997					*
*/
public class confidenceControlPanel extends Panel{
	confidence applet;
	FlowLayout fl = new FlowLayout();
	Choice alphaChoice;
	int alpha_indx=1;

	
/**
* constructor of control panel
* @param applet the calling applet
*/
	public confidenceControlPanel(confidence applet){
		this.applet=applet;
		setBackground(new Color(230,230,230));
		setLayout(fl);
		alphaChoice = new Choice();
		alphaChoice.addItem("alpha= .1");
		alphaChoice.addItem("alpha = .05");
		alphaChoice.addItem("alpha = .01");
		alphaChoice.select(alpha_indx);
		add(alphaChoice);

		PlayButton play = new PlayButton(applet,"Play");
			// ACTION PASSED DIRECTLY TO APPLET
		add(play); 
		}





/**
*  clears panel 
*/
	public void clear() {
				}

/**
* Gets alpha information
* 0-> alpha=0.05, 1-> alpha = 0.01 1-> p < mu0, and 2 -> p != mu0
*/
	public int getAlphaIndex(){
		return alphaChoice.getSelectedIndex();
		}



}

