if (height != (int) getSize().getHeight() || width != (int) getSize().getWidth()) {
if (height != (int) getSize().height || width != (int) getSize().width) {
	public void paintComponent(Graphics g) {		if (partList != null && image != null) {			if (height != (int) getSize().getHeight()					|| width != (int) getSize().getWidth()) {				setPartList(partList, id);			}			g.setColor(getBackground());			g.fillRect(0, 0, width, height);			if (image != null) {				g.drawImage(image, 0, 0, null);			}		} else {			super.paintComponent(g);		}	}