if (round < 1) { System.err.println("ERROR: ReportDisplay.setReportTab() called with round argument of " + round + "; value must be at least 1."); return;
if (round == 0) {   round = 1;
    public void setReportTab(int round, String roundText, String phaseText) {        if (round < 1) {            System.err.println("ERROR: ReportDisplay.setReportTab() called with round argument of " + round + "; value must be at least 1.");            return;        }        if (round >= vTextArea.size()) {            //Need a new tab for the new round.            //get rid of phase tab            tabs.remove((Component)vTextArea.elementAt(vTextArea.size() - 1));            vTextArea.removeElementAt(vTextArea.size() - 1);            //add as many round tabs as necessary to catch us up            TextArea ta;            while (round > vTextArea.size()) {                //HACK: We shouldn't have to rely on our access to the client object...                ta = new TextArea(client.receiveReport(client.game.getReports(vTextArea.size() + 1)), 40, 25, TextArea.SCROLLBARS_VERTICAL_ONLY);                ta.setEditable(false);                tabs.add("Round " + (vTextArea.size() + 1),ta);                vTextArea.addElement(ta);            }            //add the new current phase tab            ta = new TextArea(phaseText, 40, 25, TextArea.SCROLLBARS_VERTICAL_ONLY);            ta.setEditable(false);            tabs.add("Phase", ta);            vTextArea.addElement(ta);            tabs.last();        } else {            //Update the previous rounds tab and the phase tab.            ((TextArea)vTextArea.elementAt(round - 1)).setText(roundText);            ((TextArea)vTextArea.elementAt(round)).setText(phaseText);        }    }