Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » multiple column table header
multiple column table header [message #901899] Tue, 14 August 2012 22:44 Go to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 191
Registered: July 2009
Senior Member
Hi,

how can I define a Table or TableView with a multiple column header? I found some thing for JTable
(http://www.crionics.com/public/swing_examples/JTableExamples1.html) but I think it wont work in
Eclipse.

the needed layout is:

+----------------------------------------------------------+
|Global header |
+----------------------------------------------------------+
|2nd level header A | 2nd level header B |
+----------------------------------------------------------+
|3rd level A | 3rd level B |3rd level D | 3rd level E |
+----------------------------------------------------------+
|col 1 | col2 |col 1 | col2 |col 1 | col2 |col 1 | col2 |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+
| | | | | | | | |
+----------------------------------------------------------+


any idea how to implement this? Any hints would be appreciated, Martin
Re: multiple column table header [message #901923 is a reply to message #901899] Wed, 15 August 2012 05:42 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2012-08-15 00:44, Martin Jacob wrote:
> how can I define a Table or TableView with a multiple column header? I
> found some thing for JTable
> (http://www.crionics.com/public/swing_examples/JTableExamples1.html) but
> I think it wont work in Eclipse.

You are right, SWT Table cannot represent multiple column headers.

> any idea how to implement this? Any hints would be appreciated, Martin

I suggest to consider to use more capable Table framework, e.g. Nebula Grid:

http://www.eclipse.org/nebula/widgets/grid/grid.php

(Take a look at the examples)

or maybe even better NatTable:

http://eclipse.org/nattable/

- Daniel
Re: multiple column table header [message #901925 is a reply to message #901923] Wed, 15 August 2012 06:39 Go to previous message
Martin Jacob is currently offline Martin JacobFriend
Messages: 191
Registered: July 2009
Senior Member
Thanks Daniel, I just had a look at the websites and it looks very good. Will try it!

Daniel Krügler wrote, On 15.08.2012 07:42:
> On 2012-08-15 00:44, Martin Jacob wrote:
>> how can I define a Table or TableView with a multiple column header? I
>> found some thing for JTable
>> (http://www.crionics.com/public/swing_examples/JTableExamples1.html) but
>> I think it wont work in Eclipse.
>
> You are right, SWT Table cannot represent multiple column headers.
>
>> any idea how to implement this? Any hints would be appreciated, Martin
>
> I suggest to consider to use more capable Table framework, e.g. Nebula Grid:
>
> http://www.eclipse.org/nebula/widgets/grid/grid.php
>
> (Take a look at the examples)
>
> or maybe even better NatTable:
>
> http://eclipse.org/nattable/
>
> - Daniel
>
>
Previous Topic:Error when adding rcp-sdk as target platform
Next Topic:Common Navigator Framework
Goto Forum:
  


Current Time: Thu Apr 25 19:39:33 GMT 2024

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

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

Back to the top