public void viewCalendar() {
		if (jCalendar == null)
			jCalendar = new JPanel();
		jCalendar.repaint();
		btnDays.removeAll(btnDays);
		GridLayout gl = new GridLayout(7, 7, 1, 1);
		jCalendar.setLayout(gl);
		Calendar c = new GregorianCalendar(Integer.parseInt(textDateYear
				.getText()), Integer.parseInt(textDateMonth.getText()) - 1, 1);
		// Wednesday is 1
		int startDateOfWeek = c.get(Calendar.DAY_OF_WEEK);
		int endDate = c.getActualMaximum(Calendar.DAY_OF_MONTH);
		if (startDateOfWeek > 1)
			startDateOfWeek = startDateOfWeek - 2;
		else
			startDateOfWeek = 6;
		for (int i = 0; i < 7; i++) {
			lblWeekDay.add(new JLabel());
			lblWeekDay.get(i).setText(strArrWeekDays[i]);
			jCalendar.add(lblWeekDay.get(i));
			lblWeekDay.get(i).setFont(normalLbl);
			if (i == 6) {
				lblWeekDay.get(i).setForeground(Color.RED);
			}
		}
		for (int i = 0; i < 42; i++) {
			if (i < startDateOfWeek || i > endDate + startDateOfWeek - 1) {
				jCalendar.add(new JLabel(""));
			} else {
				btnDays.add(new JButton(String.valueOf(i - startDateOfWeek + 1)));
				jCalendar.add(btnDays.get(i - startDateOfWeek));
				btnDays.get(i - startDateOfWeek).setFont(normalBtn);
				jCalendar.add(btnDays.get(i - startDateOfWeek));
				if (jCalendar.getComponentCount() % 7 == 0) {
					btnDays.get(i - startDateOfWeek).setForeground(Color.red);
				}
			}
		}
		for (JButton b : btnDays) {
			b.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent e) {
					// TODO Auto-generated method stub
					JButton x = (JButton) e.getSource();
					dateOfMeeting = x.getText() + "/" + textDateMonth.getText()
							+ "/" + textDateYear.getText();
					textDate.setText(dateOfMeeting);
				}
			});
		}

		jCalendar.repaint();
		jCalendar.setBorder(BorderFactory.createLineBorder(Color.BLACK));
	}