Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Nebula GridItem.setForeground not working
Nebula GridItem.setForeground not working [message #1783000] Tue, 06 March 2018 10:34 Go to next message
Nin Pa is currently offline Nin PaFriend
Messages: 29
Registered: September 2013
Junior Member
Hello everybody,

in my RAP Application (RAP 3.3) I am using a Grid (org.eclipse.nebula.widgets.grid.Grid) and manually add GridItems.

Now i am trying to set the Background and Foreground Color of the items individually.
Using item.setBackground(index, color) works, item.setForeground(index, color) does not (item.setForeground(color) doesn't work, too).

Please... any ideas?
Regards!


Re: Nebula GridItem.setForeground not working [message #1783007 is a reply to message #1783000] Tue, 06 March 2018 12:37 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2289
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
just checked with RAP Controls demo and both methods GridItem#setForeground() and GridItem#setForeground(int, Color) work as expected. Please attach a simple self-running entry point to demonstrate the problem.
Regards,
Ivan
Re: Nebula GridItem.setForeground not working [message #1783081 is a reply to message #1783000] Wed, 07 March 2018 13:11 Go to previous message
Nin Pa is currently offline Nin PaFriend
Messages: 29
Registered: September 2013
Junior Member
Hi!

I checked it too and realized that you are right, there it works.
Now I removed my theme and it works, too.
Is there any entry, that can override the property which is set in setForeground()?

[Updated on: Wed, 07 March 2018 13:12]

Report message to a moderator

Previous Topic:NullpointerException in Workbench
Next Topic:Nebula GridItem.setColumnSpan display problem
Goto Forum:
  


Current Time: Mon Nov 19 00:43:42 GMT 2018

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

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

Back to the top