public void setFillMode(FillMode fm) {
		fillMode = fm;
		if (fillMode == FillMode.getNoFillMode()) {
			setBackground(Color.white);
			setBackgroundImage(null);
		} else if (fillMode instanceof FillMode.ColorFill) {
			setBackground(((FillMode.ColorFill) fillMode).getColor());
			setBackgroundImage(null);
		} else if (fillMode instanceof FillMode.ImageFill) {
			String s = ((FillMode.ImageFill) fillMode).getURL();
			if (FileUtilities.isRemote(s)) {
				URL url = null;
				try {
					url = new URL(s);
				} catch (MalformedURLException e) {
					setBackgroundImage(null);
					repaint();
					return;
				}
				ImageIcon icon = ConnectionManager.sharedInstance().loadImage(url);
				if (icon != null && icon.getIconWidth() > 0 && icon.getIconHeight() > 0) {
					setBackgroundImage(icon);
				} else {
					setBackgroundImage(null);
				}
			} else {
				setBackgroundImage(new ImageIcon(Toolkit.getDefaultToolkit().createImage(s), s));
			}
		} else {
			setBackgroundImage(null);
		}
		repaint();
	}