Creating a CTabFolder : CTabFolder « SWT « Java Tutorial






Create a CTabFolder by passing a parent and a style to the constructor:

CTabFolder(Composite parent, int style)

CTabFolder Style Constants

StyleDescription
SWT.TOPDisplays the children tabs along the top edge of this CTabFolder.
SWT.BOTTOMDisplays the children tabs along the bottom edge of this CTabFolder.
SWT.FLATIf borders are visible, displays the children tabs with a flat look. If SWT.FLAT isn't specified and borders are visible, displays the children tabs with a three-dimensional look. Also, displays any scrolling controls with a flat look.


You can combine SWT.FLAT with either SWT.TOP or SWT.BOTTOM using the bitwise OR operator,









17.68.CTabFolder
17.68.1.TabFolder/TabItem vs. CTabFolder/CTabItem
17.68.2.Creating a CTabFolder
17.68.3.Add CTabItem to CTabFolderAdd CTabItem to CTabFolder
17.68.4.Add Image to CTabFolderAdd Image to CTabFolder
17.68.5.Set CTabFolder Minimize and Maximize VisibleSet CTabFolder Minimize and Maximize Visible
17.68.6.Add CTabFolder2Adapter to CTabFolderAdd CTabFolder2Adapter to CTabFolder
17.68.7.Displaying a Gradient BackgroundDisplaying a Gradient Background
17.68.8.Add CTabFolder2ListenerAdd CTabFolder2Listener