private Icon starIcon(Icon imageIcon, int width, int height){ Image i1 = ((ImageIcon) imageIcon).getImage(); Image image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); Graphics g = image.getGraphics(); g.drawImage(i1, 0, 0, null);  java.net.URL imageURL = ThreeStateButton3.class.getResource("images/stern3.gif"); Image star; if (imageURL != null) {  MediaTracker mediaTracker = new MediaTracker(this); mediaTracker.addImage(image, 0); try { mediaTracker.waitForID(0); Toolkit toolkit = Toolkit.getDefaultToolkit(); star = toolkit.getImage(imageURL); g.drawImage(star,0,0,null);  } catch (InterruptedException ie) { Debug.err("error loading images/stern2.gif"+ie); } }else{ Debug.err("images/stern2.gif not found for ThreeStateButton");
private Icon starIcon(Icon imageIcon, int width, int height) { Image i1 = ((ImageIcon) imageIcon).getImage(); Image image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); Graphics g = image.getGraphics(); g.drawImage(i1, 0, 0, null);  java.net.URL imageURL = ThreeStateButton3.class .getResource("images/stern3.gif"); Image star; if (imageURL != null) { MediaTracker mediaTracker = new MediaTracker(this); try { Toolkit toolkit = Toolkit.getDefaultToolkit(); star = toolkit.getImage(imageURL); mediaTracker.addImage(star, 1); mediaTracker.waitForID(1); g.drawImage(star, 0, 0, this);  } catch (InterruptedException ie) { Debug.err("error loading images/stern2.gif" + ie);
	private Icon starIcon(Icon imageIcon, int width, int height){			Image i1 = ((ImageIcon) imageIcon).getImage();			Image image = new BufferedImage(width, height,					BufferedImage.TYPE_INT_ARGB);			Graphics g = image.getGraphics();			g.drawImage(i1, 0, 0, null);						java.net.URL imageURL = ThreeStateButton3.class.getResource("images/stern3.gif");			Image star;			if (imageURL != null) {								MediaTracker mediaTracker = new MediaTracker(this);				mediaTracker.addImage(image, 0);				try				{					mediaTracker.waitForID(0);					Toolkit toolkit = Toolkit.getDefaultToolkit();					star = toolkit.getImage(imageURL);					g.drawImage(star,0,0,null);					//Debug.msg("image loaded: "+star.toString());				}				catch (InterruptedException ie)				{					Debug.err("error loading images/stern2.gif"+ie);				}			}else{				Debug.err("images/stern2.gif not found for ThreeStateButton");			}			ImageIcon result = new ImageIcon(image);			return result;		}