package fall01_c595; import java.awt.*; import java.awt.event.*; import java.applet.*; class PresLeads { Checkbox present; Checkbox lead; String paper_name; String authors; String date; PresLeads(CheckboxGroup cbg,String paper, String author) { present = new Checkbox("Present It",false,cbg); lead = new Checkbox("Lead The Discussion",false,cbg); paper_name = new String(paper); authors = new String(author); } PresLeads(CheckboxGroup cbg, String paper, String author, String date, int pres, int disc, Applet app) { date = new String(date); paper_name = new String(paper); authors = new String(author); if (pres == 1) { present = new Checkbox("Not Available - Presentation has already been selected.",false,cbg); } else { present = new Checkbox("Present It",false,cbg); } present.addItemListener((ItemListener)app); if (disc == 1) { lead = new Checkbox("Not Available - Lead has already been selected.",false,cbg); } else { lead = new Checkbox("Lead The Discussion",false,cbg); } lead.addItemListener((ItemListener)app); } PresLeads(CheckboxGroup cbg) { present = new Checkbox("Present Paper",false,cbg); lead = new Checkbox("Lead Discussion",false,cbg); paper_name = null; authors = null; } void setPaperName(String paper) { paper_name = new String(paper); } void setAuthors(String names) { authors = new String(names); } }