Mega Code Archive

 
Categories / Java Tutorial / SWT
 

Introducing List and List Styles

List boxes display lists of strings and allow users to select one or more of them. StyleEffect SWT.BORDERDraws a border around this List. SWT.SINGLECreates a List that allows selection of only one item at a time. This is the default. SWT.MULTICreates a List that allows selection of multiple items at a time. You may specify only one of SWT.SINGLE or SWT.MULTI. SWT.H_SCROLLCreates a horizontal scrollbar to scroll this List. SWT.V_SCROLLCreates a vertical scrollbar to scroll this List.