public TimeView(final TimeCont control) {
//		control.setShowSec(false);
		control.count();

		setResizable(false);
		setUndecorated(true);
		setAlwaysOnTop(true);
		setContentPane(new JPanel());

		getContentPane().setBackground(Color.BLACK);

		lblTime = new JLabel("00:00:00");
		lblTime.setFont(new Font("Courier", Font.BOLD, 40));
		lblTime.setForeground(Color.WHITE);
		lblTime.setHorizontalAlignment(JLabel.CENTER);
		getContentPane().setLayout(new BorderLayout());
		getContentPane().add(lblTime, BorderLayout.CENTER);

		this.pack();
		// positions the window in the top right corner
		setPosition(y, x);
//		setSize(lblTime.getWidth(), 40);

		getContentPane().setFocusable(true);
		getContentPane().requestFocus();
		getContentPane().addKeyListener(new KeyListener() {
			@Override
			public void keyTyped(KeyEvent e) { }

			@Override
			public void keyPressed(KeyEvent e) { }

			/**
			 * Modifies the position of the window.
			 * @param e
			 * 			The key released.
			 * @see java.awt.event.KeyListener#keyTyped(java.awt.event.KeyEvent)
			 */
			@Override
			public void keyReleased(KeyEvent e) {
				switch (e.getKeyCode()) {
				/* For arrows */
				case KeyEvent.VK_UP:
					y = y.getPrevious();
					break;
				case KeyEvent.VK_RIGHT:
					x = x.getNext();
					break;
				case KeyEvent.VK_DOWN:
					y = y.getNext();
					break;
				case KeyEvent.VK_LEFT:
					x = x.getPrevious();
					break;
				/* End of arrows */
				case KeyEvent.VK_P:
					if (control.isPaused()) {
						control.count();
						getContentPane().setBackground(Color.BLACK);
						lblTime.setForeground(Color.WHITE);
					}
					else {
						control.pause();
						getContentPane().setBackground(Color.GRAY);
						lblTime.setForeground(Color.BLACK);
					}
					break;
				case KeyEvent.VK_S:
					control.setShowSec(!control.showsSec());
					break;
				}
				setPosition(y, x);
			}
		});
	}