Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with too many columns in table
Problem with too many columns in table [message #436318] Mon, 17 May 2004 14:35 Go to next message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
Hiho,

I've written a WizardPage containing a table. The table should only have one
column. The problem is that there's always one column auto-generated after
the column ('user-id') I've created. It's the same when I create two columns
within my code - three columns are displayed!!

Here's the code I use too create the table:

start of code:
>>>
Composite tContainer = new Composite(aParent, SWT.NULL);
GridLayout tLayout = new GridLayout(2, false);
tLayout.verticalSpacing = 12;
tLayout.horizontalSpacing = 12;
tContainer.setLayout(tLayout);
tContainer.layout();
iTable = new Table(tContainer, SWT.HIDE_SELECTION);
GridData tTableData = new GridData();
tTableData.grabExcessHorizontalSpace = true;
tTableData.horizontalAlignment = GridData.FILL;
tTableData.horizontalSpan=2;
iTable.setLayoutData(tTableData);
iTable.setHeaderVisible(true);
iTable.setLinesVisible(true);
iColumn = new TableColumn(iUserUnitPositionsTable, SWT.LEFT, 0);
iColumn.setText("Column 1");
<<<
end of code.

The problem seems to be that the table creates another column to fill the
gap between the table and the WizardPage's right border. How can I supress
this additional column? I checked the Eclipse-API but found nothing that
helped.
Re: Problem with too many columns in table [message #436321 is a reply to message #436318] Mon, 17 May 2004 15:32 Go to previous messageGo to next message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

This behavior is platform specific.

Boby

"exquisitus" <banshee@wudu.de> wrote in message
news:c8aidb$8p9$1@eclipse.org...
> Hiho,
>
> I've written a WizardPage containing a table. The table should only have
one
> column. The problem is that there's always one column auto-generated after
> the column ('user-id') I've created. It's the same when I create two
columns
> within my code - three columns are displayed!!
>
> Here's the code I use too create the table:
>
> start of code:
> >>>
> Composite tContainer = new Composite(aParent, SWT.NULL);
> GridLayout tLayout = new GridLayout(2, false);
> tLayout.verticalSpacing = 12;
> tLayout.horizontalSpacing = 12;
> tContainer.setLayout(tLayout);
> tContainer.layout();
> iTable = new Table(tContainer, SWT.HIDE_SELECTION);
> GridData tTableData = new GridData();
> tTableData.grabExcessHorizontalSpace = true;
> tTableData.horizontalAlignment = GridData.FILL;
> tTableData.horizontalSpan=2;
> iTable.setLayoutData(tTableData);
> iTable.setHeaderVisible(true);
> iTable.setLinesVisible(true);
> iColumn = new TableColumn(iUserUnitPositionsTable, SWT.LEFT, 0);
> iColumn.setText("Column 1");
> <<<
> end of code.
>
> The problem seems to be that the table creates another column to fill the
> gap between the table and the WizardPage's right border. How can I supress
> this additional column? I checked the Eclipse-API but found nothing that
> helped.
>
>
Re: Problem with too many columns in table [message #436322 is a reply to message #436321] Mon, 17 May 2004 15:32 Go to previous messageGo to next message
exquisitus is currently offline exquisitusFriend
Messages: 211
Registered: July 2009
Senior Member
Hi!

Thank you, Robert. I'm on WinXP - is there a way to surpress this behaviour?

Ciao,
Exquisitus


"Robert Bacs" <boby@zerosoft.ro> schrieb im Newsbeitrag
news:c8algq$dbr$1@eclipse.org...
> Hi,
>
> This behavior is platform specific.
>
> Boby
>
> "exquisitus" <banshee@wudu.de> wrote in message
> news:c8aidb$8p9$1@eclipse.org...
> > Hiho,
> >
> > I've written a WizardPage containing a table. The table should only have
> one
> > column. The problem is that there's always one column auto-generated
after
> > the column ('user-id') I've created. It's the same when I create two
> columns
> > within my code - three columns are displayed!!
> >
> > Here's the code I use too create the table:
> >
> > start of code:
> > >>>
> > Composite tContainer = new Composite(aParent, SWT.NULL);
> > GridLayout tLayout = new GridLayout(2, false);
> > tLayout.verticalSpacing = 12;
> > tLayout.horizontalSpacing = 12;
> > tContainer.setLayout(tLayout);
> > tContainer.layout();
> > iTable = new Table(tContainer, SWT.HIDE_SELECTION);
> > GridData tTableData = new GridData();
> > tTableData.grabExcessHorizontalSpace = true;
> > tTableData.horizontalAlignment = GridData.FILL;
> > tTableData.horizontalSpan=2;
> > iTable.setLayoutData(tTableData);
> > iTable.setHeaderVisible(true);
> > iTable.setLinesVisible(true);
> > iColumn = new TableColumn(iUserUnitPositionsTable, SWT.LEFT, 0);
> > iColumn.setText("Column 1");
> > <<<
> > end of code.
> >
> > The problem seems to be that the table creates another column to fill
the
> > gap between the table and the WizardPage's right border. How can I
supress
> > this additional column? I checked the Eclipse-API but found nothing that
> > helped.
> >
> >
>
>
Re: Problem with too many columns in table [message #436378 is a reply to message #436322] Tue, 18 May 2004 09:03 Go to previous message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

No, there is no way to supress this behaviour !

Boby

"exquisitus" <banshee@wudu.de> wrote in message
news:c8aln3$dlk$1@eclipse.org...
> Hi!
>
> Thank you, Robert. I'm on WinXP - is there a way to surpress this
behaviour?
>
> Ciao,
> Exquisitus
>
>
> "Robert Bacs" <boby@zerosoft.ro> schrieb im Newsbeitrag
> news:c8algq$dbr$1@eclipse.org...
> > Hi,
> >
> > This behavior is platform specific.
> >
> > Boby
> >
> > "exquisitus" <banshee@wudu.de> wrote in message
> > news:c8aidb$8p9$1@eclipse.org...
> > > Hiho,
> > >
> > > I've written a WizardPage containing a table. The table should only
have
> > one
> > > column. The problem is that there's always one column auto-generated
> after
> > > the column ('user-id') I've created. It's the same when I create two
> > columns
> > > within my code - three columns are displayed!!
> > >
> > > Here's the code I use too create the table:
> > >
> > > start of code:
> > > >>>
> > > Composite tContainer = new Composite(aParent, SWT.NULL);
> > > GridLayout tLayout = new GridLayout(2, false);
> > > tLayout.verticalSpacing = 12;
> > > tLayout.horizontalSpacing = 12;
> > > tContainer.setLayout(tLayout);
> > > tContainer.layout();
> > > iTable = new Table(tContainer, SWT.HIDE_SELECTION);
> > > GridData tTableData = new GridData();
> > > tTableData.grabExcessHorizontalSpace = true;
> > > tTableData.horizontalAlignment = GridData.FILL;
> > > tTableData.horizontalSpan=2;
> > > iTable.setLayoutData(tTableData);
> > > iTable.setHeaderVisible(true);
> > > iTable.setLinesVisible(true);
> > > iColumn = new TableColumn(iUserUnitPositionsTable, SWT.LEFT, 0);
> > > iColumn.setText("Column 1");
> > > <<<
> > > end of code.
> > >
> > > The problem seems to be that the table creates another column to fill
> the
> > > gap between the table and the WizardPage's right border. How can I
> supress
> > > this additional column? I checked the Eclipse-API but found nothing
that
> > > helped.
> > >
> > >
> >
> >
>
>
Previous Topic:ToolTips in Properties View
Next Topic:How to realize this "two arrow" Control with SWT
Goto Forum:
  


Current Time: Fri Apr 26 17:37:05 GMT 2024

Powered by FUDForum. Page generated in 0.03513 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top