Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGridEditor issue
https://www.eclipse.org/forums/index.php/mv/msg/177291/563856/#msg_563856
just a little question about using GridEditor class in my program.
I write the following code:
final Grid grid = new Grid(top, SWT.BORDER);
grid.setLinesVisible (true);
editor = new GridEditor (grid);
Text text = new Text (grid, SWT.NONE);
text.setText("Text");
editor.grabHorizontal = true;
editor.setEditor(text, items[i], 1);
The goal is just to display a 12*3 nebula Grid with:
CCombo in column 1
Text in column 2
Button in column 3
This part of code is largely inspired from TableEditor creation javadoc
but the result is not the same as with the TableEditor:
The Grid is fullfilled with a signe big CCombo.... It seems that the combo
is inserted into Grid layout and overlaps any others Grid cells.
Could someone help?
Thanks in advance.]]>remi2006-08-11T10:10:13-00:00