SWT Widgets
Supported style bits

If you are familiar with AWT you will notice that the way you create widgets in SWT is significantly different. In SWT you specify the parent widget. This is necessary to create the underlying OS resources. In addition you also have the ability to specify initial values for the widget. For example to specify what type of button you want to create in the example above the values SWT.CHECK and SWT.PUSH are used. All style bits are static integers declared by SWT.

Here is a hierarchical list that identifies which style bits are supported by each class. Classes are shown in bold. A widget automatically supports all of the style bits supported by its parent(s).
 
Dialog          
  APPLICATION_MODAL        
  MODELESS        
  PRIMARY_MODAL        
  SYSTEM_MODAL        
  FileDialog        
    SAVE      
    OPEN      
  MessageBox        
    OK      
    OK | CANCEL      
    YES | NO      
    YES | NO | CANCEL      
    RETRY | CANCEL      
    ABORT | RETRY | IGNORE      
    ICON_ERROR      
    ICON_INFORMATION      
    ICON_QUESTION      
    ICON_WARNING      
    ICON_WORKING      
Caret          
  (No styles)        
Control          
  BORDER        
  Button        
    ARROW      
    CHECK      
    FLAT      
    PUSH      
    RADIO      
    TOGGLE      
  Label        
    SEPARATOR | HORIZONTAL      
    SEPARATOR | VERTICAL      
    SEPARATOR | SHADOW_IN      
    SEPARATOR | SHADOW_OUT      
    WRAP      
  ProgressBar        
    SMOOTH      
    HORIZONTAL      
    VERTICAL      
  Sash        
    HORIZONTAL      
    VERTICAL      
  Scale        
    HORIZONTAL      
    VERTICAL      
  Scrollable        
    H_SCROLL      
    V_SCROLL      
    Composite      
      NO_MERGE_PAINTS    
      NO_REDRAW_RESIZE    
      NO_FOCUS    
      NO_BACKGROUND    
      Canvas    
        Decorations  
          BORDER
          CLOSE
          MIN
          MAX
          NO_TRIM
          RESIZE
          TITLE
          Shell
      Combo    
        SIMPLE  
        DROP_DOWN  
        READ_ONLY  
      CoolBar    
        FLAT  
        WRAP  
      Group    
        SHADOW_IN  
        SHADOW_OUT  
        SHADOW_ETCHED_IN  
        SHADOW_ETCHED_OUT  
        SHADOW_NONE  
      OleClientSite    
        OleControlSite  
      OleFrame    
      TabFolder    
      Table    
        SINGLE  
        MULTI  
        CHECK  
        FULL_SELECTION  
      ToolBar    
        WRAP  
        FLAT  
    List      
      SINGLE    
      MULTI    
    TextEditor      
      READ_ONLY    
      WRAP    
      SINGLE    
      MULTI    
      RichText    
      Text    
    Tree      
      SINGLE    
      MULTI    
      CHECK    
  Slider        
    VERTICAL      
    HORIZONTAL      
DragSource          
  DROP_NONE        
  DROP_COPY        
  DROP_LINK          
  DROP_MOVE        
DropTarget          
  DROP_NONE        
  DROP_COPY        
  DROP_LINK        
  DROP_MOVE        
Item          
  CoolItem        
    (No styles)      
  MenuItem        
    CHECK      
    CASCADE      
    PUSH      
    RADIO      
    SEPARATOR      
  TabItem        
    (No styles)      
  TableColumn        
    (No styles)      
  TableItem        
    (No styles)      
  ToolItem        
    PUSH      
    CHECK      
    RADIO      
    SEPARATOR      
    DROP_DOWN      
  TreeItem        
    (No styles)      
Menu          
  BAR        
  POP_UP        
  DROP_DOWN        
ScrollBar          
  VERTICAL        
  HORIZONTAL        
Tracker          
   (No styles)