0

I've build an application in Java with the help of JFace/SWT. I am using mainly the TableViewer of JFace and sometime the SWT table behind with myTableViewer.getTable().

My table has a header (filled with the column names) and the first row is rendered with CCombos in CellEditors (drop down menus for filters).

Now I want to fix this first row ("filter-row") in the table, so it is always shown, independently if I am scrolling down or not..

Do you know any opportunity to do this (instead of splitting one table in two tables, as I found it in the internet)?

Brian Tompsett - 汤莱恩
  • 5,195
  • 62
  • 50
  • 120
mrbela
  • 3,860
  • 4
  • 38
  • 70

1 Answers1

0

The SWT Table does not support fixed rows or columns.

If the combos were inteded to hold a limited number of choices you may use context menus on the column headers instead.

There are also alternative Table-like implementations in varying degrees of maturity that you may consider:

If non of the above fits your requirements you will have to either use a distinct table that holds the combo widgets or implement a custom 'header' control.

Rüdiger Herrmann
  • 18,905
  • 11
  • 53
  • 72