public boolean waitForPress(int timeout) {
			if (timeout == 0)
				timeout = 0;
			int curr = 0;
			while (!okClicked) {
				if (curr > timeout)
					return false;
				curr += 25;
				try {
					Thread.sleep(25);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
			return true;
		}