public void updateScale() {
		if (parent.getSize().width >= 150 && parent.getSize().height >= 200) {
			System.out.println("parent size used");
			Dimension temp = computeFromParentSize(parent.getSize());
			if (thisSize.equals(temp))
				return;
			thisSize = temp;
			this.setPreferredSize(thisSize);
			computePositions();
			if (foundSolution) {
				drawSolution(localSolution, localCaps, capConst, false, minor_solution, best_solution);
			}
		}
	}