@Override
		public void paintComponent(Graphics g) {
			
			super.paintComponent(g);
			
			count++;
			g.fillRect(0, 0, mode.getWidth() - 330, mode.getHeight() - 30);

			g.setColor(Color.white);

			int tundideks = (mode.getHeight() - 30) / 18;

			int seitsmeks = (mode.getWidth() - 330) / 7;
			for (int i = 10; i < mode.getWidth() - 330; i = i + seitsmeks) {
				g.drawLine(i, 10, i, mode.getHeight() - 30);
			}
			g.drawLine(10, mode.getHeight() - 10, mode.getWidth() - 330,
					mode.getHeight() - 10);
			g.setColor(Color.red);
			g.drawString(date, 45 + (seitsmeks * 3), 10);
			g.setColor(Color.white);
			int tunniaeg = 6;
			for (int i = 10; i < mode.getWidth() - 330; i = i + seitsmeks) {
				for (int j = 10; j < mode.getHeight() - 30; j = j + tundideks) {
					g.drawLine(i - 3, j, i + 3, j);

					String aeg = Integer.toString(tunniaeg);
					g.drawString(aeg, i + 5, j);
					tunniaeg++;
					if (tunniaeg == 24) {
						tunniaeg = 6;
					}
				}
			}

			drawClasses(g);
		}