public void update() {
		if(pv.getZoom() == 100) {
			loading = true;
			
			if(pv.selected.isEmpty()) {
				if(enabled) setEnabled(false);
				if(btnSwap.isEnabled()) btnSwap.setEnabled(false);
				clearItems();
			} else if(pv.selected.size() == 1) {
				if(!enabled) setEnabled(true);
				counsChooser.setEnabled(true);
				
				Table t = pv.selected.get(0);
				updateCounsChooser();
				updateTeamChooser();
				
				xSpinner.setValue(t.getX());
				ySpinner.setValue(t.getY());
				widthSpinner.setValue(t.getWidth());
				heightSpinner.setValue(t.getHeight());
				fixed.setSelected(t.isFixed());
				
				if(t.getCounselor() != null) {
					counsChooser.setSelectedItem(t.getCounselor());
				} else {
					counsChooser.setSelectedItem(null);
				}
				if(t.getTeam() != null) {
					teamChooser.setSelectedItem(t.getTeam());
				} else {
					teamChooser.setSelectedItem(null);
				}
				
				if(btnSwap.isEnabled()) btnSwap.setEnabled(false);
			} else {
				if(pv.selected.size() == 2) {
					if(!btnSwap.isEnabled()) btnSwap.setEnabled(true);
				} else {
					if(btnSwap.isEnabled()) btnSwap.setEnabled(false);
				}
				
				Team team = null;
				
				for(int i = 0; i < pv.selected.size(); i++) {
					Table t = pv.selected.get(i);
					
					if(i == 0) {
						team = t.getTeam();
					} else {
						if(t.getTeam() != team && team != null) {
							team = null;
						}
					}
				}
				
				updateTeamChooser();
				if(team != null) {
					teamChooser.setSelectedItem(team);
				}
				
				if(!enabled) setEnabled(true);
				counsChooser.setEnabled(false);
				
				xSpinner.setValue(0);
				ySpinner.setValue(0);
				widthSpinner.setValue(0);
				heightSpinner.setValue(0);
				
				fixed.setSelected(false);
				
				if(btnChoosePartner.isEnabled()) btnChoosePartner.setEnabled(false);
			}
			
			loading = false;
		}
	}