@Override
	public void keyTyped(KeyEvent e) {
		int s = e.getKeyChar()-48;
		if(s<=0 || s>9) {
			System.out.println("input is not 1-9");
		} else {
			Button b = (Button) e.getComponent();
			String right = b.getLabel().trim();
			int right2 = Integer.parseInt(right);

			if(right2 == s) {
				b.setLabel(String.valueOf(s));
				b.setForeground(null);
				b.setBackground(Color.LIGHT_GRAY);
				b.removeKeyListener(this);
			} else {
				System.out.println("your input is error");
			}
		}
	}