Grid SetColumnOrder [message #51681] |
Fri, 18 April 2008 15:43  |
Eclipse User |
|
|
|
it looks like there's a bug in the Grid.setColumnOrder() where an
IllegalArgumentException is thrown when passing a valid order sequence.
here's the code snippet:
public static void main(final String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
final Grid grid = new Grid(shell, SWT.FULL_SELECTION | SWT.V_SCROLL |
SWT.H_SCROLL | SWT.BORDER);
final GridColumnGroup group1 = new GridColumnGroup(grid, SWT.TOGGLE);
final GridColumnGroup group2 = new GridColumnGroup(grid, SWT.TOGGLE);
final GridColumnGroup group3 = new GridColumnGroup(grid, SWT.TOGGLE);
new GridColumn(group1, SWT.NONE);
new GridColumn(group2, SWT.NONE);
new GridColumn(group3, SWT.NONE);
grid.setColumnOrder(new int[] { 0, 1, 2 });
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
can someone confirm this?
|
|
|
|
Re: Grid SetColumnOrder [message #52471 is a reply to message #51842] |
Fri, 09 May 2008 14:59  |
Eclipse User |
|
|
|
Hi,
I think it's a unknown bug, could you report this in bugzilla?
By the way setColumnOrder works fine without column groups.
Jacek
Lei wrote:
> has anyone come across this problem as well? is this a known bug?
|
|
|
|
Re: Grid SetColumnOrder [message #589639 is a reply to message #51842] |
Fri, 09 May 2008 14:59  |
Eclipse User |
|
|
|
Hi,
I think it's a unknown bug, could you report this in bugzilla?
By the way setColumnOrder works fine without column groups.
Jacek
Lei wrote:
> has anyone come across this problem as well? is this a known bug?
|
|
|
Powered by
FUDForum. Page generated in 0.05434 seconds