public void update() {
		width = getWidth();
		height = getHeight();
		
		if(l.isKeyDown(KeyEvent.VK_CONTROL) && l.isKeyDown(KeyEvent.VK_A)) {
			if(selected.size() != tables.size()) {
				selected.clear();
				
				for(int i = 0; i < tables.size(); i++) {
					selected.add(tables.get(i));
				}
			}
		}
		if(l.isKeyDown(KeyEvent.VK_ESCAPE)) {
			if(act == Action.PARTNER) {
				act = Action.SELECT;
			}
		}
		
		if(width != PROJ_VIEW_WIDTH || height != PROJ_VIEW_HEIGHT){
			setPreferredSize(new Dimension(PROJ_VIEW_WIDTH, PROJ_VIEW_HEIGHT));
		}
		
		if(dragRect.isDragging()) {
			dragRect.update();
		}
		
		if(l.isKeyDown(KeyEvent.VK_SHIFT)) {
			if(tableFrame <= timeBeforeTableMove) {
				tableFrame++;
			} else {
				for(int i = 0; i < selected.size(); i++) {
					moveTable(selected.get(i), 1);
				}
				tableFrame = 0;
			}
		} else {
			for(int i = 0; i < selected.size(); i++) {
				moveTable(selected.get(i), Constants.TABLE_SPEED);
			}
			if(tableFrame != timeBeforeTableMove) tableFrame = timeBeforeTableMove;
		}
		
		info.updatePos();
	}