vina kum wrote:
//ArrayList disp= new ArrayList();
Uncomment this block and comment the following line
vina kum wrote:
String disp = "";
Now, instead of assigning the value in "dispDay" to "disp" like;
vina kum wrote:
disp = Integer.toString(dispDay);
Add the value in "dispDay" to "disp" ArrayList object like;
disp.add(Integer.toString(dispDay));
Now, in the Barchart class, change the type for the variable, "disp", from "String" to "ArrayList";
vina kum wrote:
public class Barchart implements DatasetProducer, Serializable {
public Barchart() {}
private String disp ;
public String getDisp() {
System.out.println("getDisp");
return disp;
}
public void setDisp(String disp) {
System.out.println("setDisp");
this.disp = disp;
}
Now, check with the modifications, and let me know if any problems occured.
Regards,
Y. Keerthi Sagar.