this part is pretty much just to add the days(I left some comments about each line or so):

Code:

```
//days 1 - 28
JLabel days[] = new JLabel[28];
int t= 0; // /**
int i = 1;// * varaiables to be used
int c = 0;// *
int p = 1;// */
do {
i++;//normal loop
days[i] = new JLabel(""+i);//this statement makes the 28 days, since i = 1, it goes from 1-29
do {
c++; //moves the each day by one cell
if(i<=7){ //but if 7 days passed
c = 0; //it goes back to 0, and starts counting again
do{
p++; //goes one up everytime 7 days passed
if(p>=5){
if(c>=6){
//stop all loops
break;
}
}
buildConstraints(constraints,p,c,1,1,100,100);
}while(c <= 0); //everytime 7 days passed
}
}while(c<7);//just checking that c never gets to 7 since the max is 6 cells
constraints.fill = GridBagConstraints.NONE;
constraints.anchor = GridBagConstraints.CENTER;
grid.setConstraints(days[i], constraints);//adds one day
pane.add(days[i]); //adds the days
}while(i<=28); //this is going to occur until we reach day 28
```