Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Totals row for table
Totals row for table [message #456325] Tue, 31 May 2005 12:02 Go to next message
Eclipse UserFriend
Originally posted by: taavi.tanavsuu.mail.ee

Hi,

Newbie question: can anyone give a hint what would be the best way to
add a totals row to a JFace TableViewer? I was thinking of either
adding an additional row via the table's ViewContentProvider, but seems
like there's no good way to visually differentiate this last row in the
table (i.e. make text bold and change background color), or add separate
text fields below the table area, but then these won't resize if a user
resizes column widths..

Does anyone have a better idea?

-taavi
Re: Totals row for table [message #456330 is a reply to message #456325] Tue, 31 May 2005 17:15 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You can differentiate the row - you can set background and foreground
colours as well as change the font to be bold, italic etc.

Check out ITableColorProvider and ITableFontProvider.

"Taavi T
Previous Topic:Saving TIFF images
Next Topic:no swt-pi-gtk-3064 in java.library.path
Goto Forum:
  


Current Time: Tue Sep 24 11:07:35 GMT 2024

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

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

Back to the top