Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How to set the table header font to bold in a JFace table ?
How to set the table header font to bold in a JFace table ? [message #646596] Wed, 29 December 2010 03:31 Go to next message
EclipseNoob  is currently offline EclipseNoob Friend
Messages: 10
Registered: December 2010
Junior Member
hii guys !!!

I create a SWT table ....
final Table table = new Table(this, SWT.FULL_SELECTION);

and attach a JFace table viewer on the table like this .....

TableViewer tableViewer = new TableViewer(table);
TableLayout layout = new TableLayout();

Then i add a new column to the table .....and set the column text to ... "Property"
layout.addColumnData(new ColumnWeightData(1, true));
TableColumn nameColumn = new TableColumn(table, SWT.LEFT);
nameColumn.setText("Property");


The problem is ....... i want to set the "font" of the Column label ........ "Property" in this case to bold ........

How do i do that ????


plzzz help me out guys !!

Thanx ..... Smile
Re: How to set the table header font to bold in a JFace table ? [message #647127 is a reply to message #646596] Tue, 04 January 2011 16:14 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi,

SWT (and by extension TableViewer) does not currently support this. The
existing request for it is
https://bugs.eclipse.org/bugs/show_bug.cgi?id=63038 .

Grant


"EclipseNoob" <snehil.bitspilani@gmail.com> wrote in message
news:ife9pe$gft$1@news.eclipse.org...
> hii guys !!!
>
> I create a SWT table .... final Table table = new Table(this,
> SWT.FULL_SELECTION);
>
> and attach a JFace table viewer on the table like this .....
>
> TableViewer tableViewer = new TableViewer(table);
> TableLayout layout = new TableLayout();
>
> Then i add a new column to the table .....and set the column text to ...
> "Property"
> layout.addColumnData(new ColumnWeightData(1, true));
> TableColumn nameColumn = new TableColumn(table, SWT.LEFT);
> nameColumn.setText("Property");
>
>
> The problem is ....... i want to set the "font" of the Column label
> ........ "Property" in this case to bold ........
> How do i do that ????
>
> plzzz help me out guys !!
> Thanx ..... :)
Previous Topic:[DataBinding] Binding elements in different views
Next Topic:CheckedTreeSelectionDialog and ICheckStateProvider issue
Goto Forum:
  


Current Time: Sun Dec 21 10:47:25 GMT 2014

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

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