[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Table Resize problem
|
Bhanu,
Please ask these questions in the news group.
http://www.eclipse.org/swt/#contact
Kevin
bhanu prasad maruvada venkata <mvbhanuprasad@xxxxxxxxx>
bhanu prasad maruvada venkata <mvbhanuprasad@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
04/06/2009 07:32 PM
Please respond to
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx> |
|
|
Hi,
Whenever I try to resize my window, table is not resizing correspondingly. I need your help to fix this. Code is as follows:
final Composite composite = new Composite(this, SWT.BORDER);
final FormData fd_composite = new FormData();
fd_composite.bottom = new FormAttachment(100, -6);
fd_composite.right = new FormAttachment(100, -5);
fd_composite.left = new FormAttachment(0, 0);
fd_composite.top = new FormAttachment(0, 0);
composite.setLayoutData(fd_composite);
final FormLayout formLayouts = new FormLayout();
composite.setLayout(formLayouts);
tabFolder = new TabFolder(composite, SWT.NONE);
final TabItem typesTabItem = new TabItem(tabFolder, SWT.NONE);
typesTabItem.setText("Tab1");
final TabItem viewsTabItem = new TabItem(tabFolder, SWT.NONE);
viewsTabItem.setText("Tab2");
final Composite typesComposite = new Composite(tabFolder, SWT.NONE);
typesComposite.setLayout(new FormLayout());
typesTabItem.setControl(typesComposite);
final Group typesInfo = new Group(typesComposite, SWT.NONE);
final FormData fd_typesInfo = new FormData();
fd_typesInfo.bottom = new FormAttachment(100, 25);
fd_typesInfo.right = new FormAttachment(100, 12);
fd_typesInfo.left = new FormAttachment(0, 0);
fd_typesInfo.top = new FormAttachment(0, 0);
typesInfo.setLayoutData(fd_typesInfo);
typesInfo.setText("Please specify required info");
GridLayout typesGridLayout = new GridLayout();
typesGridLayout.numColumns = 3;
typesGridLayout.marginHeight = 10;
typesGridLayout.marginWidth = 10;
typesGridLayout.verticalSpacing = 10;
typesInfo.setLayout(typesGridLayout);
FormData typesFormData = new FormData();
typesFormData.left = new FormAttachment(3, 0);
typesFormData.right = new FormAttachment(100, -10);
typesFormData.top = new FormAttachment(0, 26);
typesFormData.bottom = new FormAttachment(100, -10);
typesInfo.setLayoutData(typesFormData);
final Table typesTable = new Table(typesInfo, SWT.V_SCROLL | SWT.SINGLE
| SWT.FULL_SELECTION | SWT.BORDER);
GridData typesGridData = new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1);
typesGridData.heightHint = 160;
typesTable.setLayoutData(typesGridData);
typesTable.setLinesVisible(false);
typesTable.setHeaderVisible(true);
TableColumn xpathColumn = new TableColumn(typesTable, SWT.NONE);
xpathColumn.setWidth(143);
xpathColumn.setText("The path");
TableColumn fieldColumn = new TableColumn(typesTable, SWT.NONE);
fieldColumn.setWidth(143);
fieldColumn.setText("Field column");
TableColumn datatypeColumn = new TableColumn(typesTable, SWT.NONE);
datatypeColumn.setWidth(144);
datatypeColumn.setText("Info Type");
--
Thanks & Regards
Bhanu_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


