package boxplot; import java.applet.Applet; import java.awt.Button; import java.awt.Choice; import java.awt.Label; import java.awt.Panel; import java.awt.TextArea; import java.awt.TextField; import org.shodor.gui11.ShodorGraphPaper; import org.shodor.gui11.TextCanvas; public class Boxplot extends Applet { private Label lSelect; private Choice cDataSet; private Button bClear, bUpdate, cShodor;//clear, update, copyright buttons private TextCanvas lYourDataDescribe; private TextField tfYourDataDescription;//text field for data description private Label lblCategory, lblN, lblMedian, lblQ1, lblQ3; private LabelCanvas lblCatName[], lblNs[], lblMedians[], lblQ1s[],lblQ3s[]; private ShodorGraphPaper boxGraph; private TextArea taYourData;//text area to enter your data below public boolean useMedian = true; //median used in calculating the quartiles if there are an odd // number of data points, for boxplot, this is true boxGraph = new ShodorGraphPaper(-10,-10,10,10); boxGraph.setSize(400,400); boxGraph.gridOn(true); bClear = new Button("Clear"); bUpdate = new Button("Update Boxplot"); cShodor = new ShodorCopyright(this); }