public void resizeWebcomicPane() {
		boolean tooLargeWidth, tooLargeHeight;

		int webcomicWidth = this.webcomicImageIcon.getIconWidth();
		int webcomicHeight = this.webcomicImageIcon.getIconHeight();

		tooLargeWidth = webcomicWidth > this.maxWidthWebcomicPane ? true
				: false;
		tooLargeHeight = webcomicHeight > this.maxHeightWebcomicPane ? true
				: false;

		if (tooLargeWidth && !tooLargeHeight) {
			this.setWebcomicPaneSize(this.maxWidthWebcomicPane,
					webcomicHeight + 20);
		} else if (!tooLargeWidth && tooLargeHeight) {
			this.setWebcomicPaneSize(webcomicWidth + 20,
					this.maxHeightWebcomicPane);
		} else if (tooLargeWidth && tooLargeHeight) {
			this.setWebcomicPaneSize(this.maxWidthWebcomicPane,
					this.maxHeightWebcomicPane);
		} else {
			this.setWebcomicPaneSize(webcomicWidth + 3, webcomicHeight + 3);
		}

		this.webcomicPane.getHorizontalScrollBar().setValue(0);
		this.webcomicPane.getVerticalScrollBar().setValue(0);
	}