public Calendar() {
		dayPanels = new ArrayList<JPanel>();
		hourPanels = new ArrayList<ArrayList<JPanel>>();
		layouts = new ArrayList<GroupLayout>();
        
        for (int i = 0; i < 8; i++){
        	dayPanels.add(new JPanel());
        	hourPanels.add(new ArrayList<JPanel>());
        	layouts.add(new GroupLayout(dayPanels.get(i)));
        	for (int j = 0; j < 24; j++){
        		JPanel temp = new JPanel();
        		if (i == 0){
        		}
        		else {
	        		if (j % 2 == 0) {
	        			temp.setBackground(Color.white);
	        		} else {
	        			temp.setBackground(new Color(240, 240, 240));
	        		}
        		}
        		temp.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 1, Color.black));
        		hourPanels.get(i).add(temp);
        	}
        }
        
        for (int i = 0; i < hourPanels.get(0).size(); i++){
        	hourPanels.get(0).get(i).add(new JLabel(i + ":00"));
        }
        
        for (int i = 0; i < dayPanels.size(); i++){
        	dayPanels.get(i).setLayout(layouts.get(i));
        	ParallelGroup horizontal = layouts.get(i).createParallelGroup(GroupLayout.Alignment.LEADING);
        	SequentialGroup vertical = layouts.get(i).createSequentialGroup();
        	for (int j = 0; j < hourPanels.get(i).size(); j++){
        		horizontal.addComponent(hourPanels.get(i).get(j), GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE);
        		vertical.addComponent(hourPanels.get(i).get(j), GroupLayout.PREFERRED_SIZE, 60, GroupLayout.PREFERRED_SIZE);
        	}
        	layouts.get(i).setHorizontalGroup(horizontal);
        	layouts.get(i).setVerticalGroup(vertical);
        }

		GroupLayout calendarPanelLayout = new GroupLayout(this);
        this.setLayout(calendarPanelLayout);
        
        SequentialGroup calendarHorizontal = calendarPanelLayout.createSequentialGroup();
        ParallelGroup calendarVertical = calendarPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING);
        for (int i = 0; i < dayPanels.size(); i++){
        	calendarHorizontal.addComponent(dayPanels.get(i), GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE);
        	calendarVertical.addComponent(dayPanels.get(i), GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE);
        }
        
        calendarPanelLayout.setHorizontalGroup(calendarHorizontal);
        calendarPanelLayout.setVerticalGroup(calendarVertical);
    
	}