public void updateSprite(String name) {
		try {
			this.sprite = new EditSprite(System.getProperty("resources") + "/sprites/" + name + ".png");
			maxDir = this.sprite.getMaxDir();
			maxFrame = this.sprite.getMaxFrame();
			
			
		} catch(Exception e) {
			sprite = null;
			maxDir = 1;
			maxFrame = 1;
		}
		
		timeComboBox.setModel(buildSwingBox());
		frameComboBox.setModel(buildFrameBox());
		if(swingTimes.length > 0)
			timeSpinner.setValue(swingTimes[0]);
	}