public static void addTaskToAgenda(String task,int startTime,int duration){
		JTextArea agendaContent = new JTextArea(task);
		agendaContent.setWrapStyleWord(true);
		agendaContent.setLineWrap(true);
		agendaContent.setEditable(false);
		Border border = BorderFactory.createEmptyBorder();
		agendaContent.setBorder(BorderFactory.createCompoundBorder(border,
				BorderFactory.createEmptyBorder(5, 10, 5, 5)));
		if(task.isEmpty()){
		agendaContent.setBackground(new Color(135, 206, 235));
		agendaContent.setOpaque(false);
		}
		else{
			agendaContent.setBackground(new Color(255, 99, 71));
		}
		switch (duration){
		case 0: agendaContent.setFont(new Font("Segoe UI", Font.PLAIN, 12));break;
		case 1: agendaContent.setFont(new Font("Segoe UI", Font.PLAIN, 14));break;
		case 2: agendaContent.setFont(new Font("Segoe UI", Font.PLAIN, 20));break;
		case 3: agendaContent.setFont(new Font("Segoe UI", Font.PLAIN, 26));break;
		default: agendaContent.setFont(new Font("Segoe UI", Font.PLAIN, 26));
		}
		GridBagConstraints c = new GridBagConstraints();
		c.fill = GridBagConstraints.BOTH;
		c.gridy = startTime;
		c.ipady = 0; 
		c.weightx = 1;
		c.weighty = duration;
		c.gridwidth = 100;
		c.insets = new Insets(0,0,0,0);  
		c.gridx = 0;
		if(task.equals(" ")){
			agendaContent.setBackground(new Color(255, 99, 71));
			agendaContent.setBorder(BorderFactory.createCompoundBorder(border,
					BorderFactory.createEmptyBorder(5,5,5,5)));
		}
		if(!agendaContent.getText().isEmpty())
			agendaContent.setOpaque(true);
		panel1.add(agendaContent,c);
	}