Bug 97588 - Table selection leaves cheese after column reorder
Summary: Table selection leaves cheese after column reorder
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 12:51 EDT by Grant Gayed CLA
Modified: 2019-09-06 16:17 EDT (History)
0 users

See Also:


Attachments
selection cheese (11.31 KB, image/pjpeg)
2005-05-31 12:52 EDT, Grant Gayed CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2005-05-31 12:51:58 EDT
3.1RC1

- run the snippet below
- select the last item in the table
- drag the first column to the right and make it the last column
- arrow up a few times and note the cheese that's left as the selection moves
- will attach screenshot in next comment

public static void main(String[] args) {
	final Display display = new Display();
	Image image = new Image(display, 16, 16);
	final Shell shell = new Shell(display);
	shell.setBounds(10,10,250,200);
	final Table table = new Table(shell, SWT.CHECK | SWT.FULL_SELECTION);
	table.setBounds(10,10,200,200);
	table.setLinesVisible(true);
	table.setHeaderVisible(true);
	TableColumn column = new TableColumn(table, SWT.NONE);
	column.setWidth(50);
	column.setMoveable(true);
	column = new TableColumn(table, SWT.CENTER);
	column.setWidth(50);
	column.setMoveable(true);
	column = new TableColumn(table, SWT.RIGHT);
	column.setWidth(50);
	column.setMoveable(true);
	column = new TableColumn(table, SWT.NONE);
	column.setWidth(50);
	column.setMoveable(true);
	new TableItem(table, SWT.NONE).setText(new String[] 
{"1", "2", "3", "4"});
	new TableItem(table, SWT.NONE).setText(new String[] 
{"1", "2", "3", "4"});
	new TableItem(table, SWT.NONE).setText(new String[] 
{"1", "2", "3", "4"});
	new TableItem(table, SWT.NONE).setText(new String[] 
{"1", "2", "3", "4"});
	new TableItem(table, SWT.NONE).setText(new String[] 
{"1", "2", "3", "4"});
	TableItem item = new TableItem(table, SWT.NONE);
	item.setText(new String[] {"1", "2", "3", "4"});
	item.setImage(image);	
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch()) display.sleep();
	}
	image.dispose();
	display.dispose();
}
Comment 1 Grant Gayed CLA 2005-05-31 12:52:28 EDT
Created attachment 22068 [details]
selection cheese
Comment 2 Steve Northover CLA 2008-06-03 17:19:02 EDT
This WORKSFORM on XP.  Still broken on 2000?
Comment 3 Steve Northover CLA 2008-06-03 17:19:41 EDT
Forget it, I didn't try the steps ... but you can let me know anyways.
Comment 4 Steve Northover CLA 2008-06-03 17:29:41 EDT
Ok, WORKSFORME.  The cheese is old focus rectangles.  Is there still cheese on 2000?
Comment 5 Grant Gayed CLA 2008-06-04 14:08:18 EDT
still happens on win2000
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:17:54 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.