private void selectCompare(double significance, String filename){
        this.compWindow = true;

        // select first equation
        ArrayList<Object> choice = this.chooseEquation(1);
        int model1index = ((Integer)choice.get(0)).intValue();
        int degree1 = 0;
        int nTerms1 = 0;
        double bottom1 = 0;
        double top1 = 0;
        if(model1index==6){
            degree1 = ((Integer)choice.get(1)).intValue();
            this.degSet = true;
        }
        if(model1index==7){
            nTerms1 = ((Integer)choice.get(1)).intValue();
            this.nTermsSet = true;
        }
        if(model1index==2){
            bottom1 = ((Double)choice.get(2)).doubleValue();
            top1 = ((Double)choice.get(3)).doubleValue();
            this.fiveBotTopSet = true;
        }
        if(model1index==4){
            bottom1 = ((Double)choice.get(2)).doubleValue();
            top1 = ((Double)choice.get(3)).doubleValue();
            this.fourBotTopSet = true;
        }



        // select second equation
        choice = this.chooseEquation(2);
        int model2index = ((Integer)choice.get(0)).intValue();
        int degree2 = 0;
        int nTerms2 = 0;
        double bottom2 = 0;
        double top2 = 0;
        if(model2index==6){
            degree2 = ((Integer)choice.get(1)).intValue();
            this.degSet = true;
        }
        if(model2index==7){
            nTerms2 = ((Integer)choice.get(1)).intValue();
            this.nTermsSet = true;
        }
        if(model2index==2){
            bottom2 = ((Double)choice.get(2)).doubleValue();
            top2 = ((Double)choice.get(3)).doubleValue();
            this.fiveBotTopSet = true;
        }
        if(model2index==4){
            bottom2 = ((Double)choice.get(2)).doubleValue();
            top2 = ((Double)choice.get(3)).doubleValue();
            this.fourBotTopSet = true;
        }
        this.compare(model1index, degree1, bottom1, top1, nTerms1, model2index, degree2, bottom2, top2, nTerms2, significance, filename);
    }