Community
Participate
Working Groups
public class Snippet_bug { public static void main (String [] args) { Display display = new Display (); String[] titles = {"Information", "Error", "Question", "Warning"}; String[] questions = {"who?", "what?", "where?", "when?", "why?"}; Shell shell = new Shell (display); shell.setLayout(new GridLayout()); Table table = new Table (shell, SWT.MULTI | SWT.CHECK|SWT.BORDER); GridData data = new GridData (SWT.FILL, SWT.FILL, true, true); data.heightHint = 200; table.setLayoutData (data); table.setLinesVisible (true); table.setHeaderVisible (true); for (int i=0; i<titles.length; i++) { TableColumn column = new TableColumn (table, SWT.NONE); column.setText (titles [i]); column.setMoveable(true); } int count = 128; for (int i=0; i<count; i++) { TableItem item = new TableItem (table, SWT.NONE); item.setText (0, "some info"); item.setText (1, "error #" + i); item.setText (2, questions [i % questions.length]); item.setText (3, "look out!"); } for (int i=0; i<titles.length; i++) { table.getColumn (i).pack (); } shell.pack (); shell.open (); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } } Steps: 1) Run the snippet 2) Try to drag the first column header (by clicking above check box column). I'm unable to drag, but the cursor changes to hand cursor. 3) Now try to drag & drop any column over the first column, the dropped column gets inserted before the checkbox column.
Fixed > 20110211, in Tree and Table. Check column can no longer be moved, or attempted to be moved, and nothing can go to the left of the check column.