Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to change color of a table cell?
How to change color of a table cell? [message #439261] Fri, 09 July 2004 03:03 Go to next message
Eclipse UserFriend
Originally posted by: williams.russell.williamsr.net

Hi,

Does anybody know how to change foreground color of a table cell?


Thanx!
Re: How to change color of a table cell? [message #439313 is a reply to message #439261] Fri, 09 July 2004 11:03 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
williams <williams.russell@williamsr.net> wrote:

> Does anybody know how to change foreground color of a table cell?

Eclipse 3.0

TableItem.java:

/**
* Sets the foreground color at the given column index in the receiver
* to the color specified by the argument, or to the default system color for the item
* if the argument is null.
*
* @param index the column index
* @param color the new color (or null)
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the argument has been disposed</li>
* </ul>
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.0
*
*/
public void setForeground (int index, Color color){


--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Previous Topic:Japanese fonts in OleSiteControl
Next Topic:An exception stack trace could not be found.
Goto Forum:
  


Current Time: Fri Apr 26 00:15:59 GMT 2024

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

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

Back to the top