Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Adding lable to swt table header
Adding lable to swt table header [message #1775803] Mon, 06 November 2017 16:08 Go to next message
Lakshan Jayakody is currently offline Lakshan JayakodyFriend
Messages: 9
Registered: January 2017
Junior Member
How to add lables to jFace table column headers?
Re: Adding lable to swt table header [message #1776083 is a reply to message #1775803] Fri, 10 November 2017 14:39 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 694
Registered: January 2012
Senior Member

Do you mean text above the columns? That's done by asking the table to show its header with `Table.setHeaderVisible(true)`. See the following snippet for an example:

http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet007FullSelection.java#n73

The JFace Snippets and SWT Snippets are very good sources of information.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Duplicate: please ignore this
Next Topic:Best way to call new API method Image#getImageData(int zoom) ?
Goto Forum:
  


Current Time: Sat Dec 16 03:44:38 GMT 2017

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

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