@Override
	public void mouseReleased(MouseEvent e) {
		int size = length / 9;
		if (e.getPoint().y > p.y && e.getPoint().y < p.y + size) {
			for(int i = 0; i < 9; i++){
				if(e.getPoint().x > p.x + i * size && e.getPoint().x < p.x + (i + 1) * size){
					if(e.getButton() == 1){
						selected = i + 1;
					} else if(e.getButton() == 3){
						selected = 0;
					}
				}
			}
		}
	}