private void setIcon(BufferedImage image)
  	{  
  		Component root = SwingUtilities.getRoot(this);
    	if (root instanceof JFrame || root instanceof Frame)
    	{   
    		Frame frame = (Frame)root;
     	    frame.setIconImage(image);
     	}
  	}