| cannot remove the title icon from dialog box [message #893625] | 
Wed, 04 July 2012 21:56   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
hi, 
I want to remove the title bar icon from dialog box. here is my code 
 
 
import org.eclipse.swt.graphics.Image; 
import org.eclipse.swt.widgets.Display; 
import org.eclipse.swt.widgets.Shell; 
 
public class MainClass { 
 
 
  public static void main(String[] a) { 
      Display d = new Display(); 
      Shell s = new Shell(d); 
      s.setSize(500,500); 
       
      s.setImage(new Image(d, "C:\\Users\\Ishara\\Desktop\\resources.png")); 
      s.setText("A Shell Example"); 
      s.open(); 
      while(!s.isDisposed()){ 
          if(!d.readAndDispatch()) 
              d.sleep(); 
      } 
      d.dispose();   
    } 
} 
 
 
when i commented the s.setImage, it still shows the default icon .when i put a 1px image there, it still getting the image default size.plz tell me a way to remove that icon from dialog
 |  
 |  
  | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.07974 seconds