Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ColorDialog and Wrong Colors
ColorDialog and Wrong Colors [message #521179] Tue, 16 March 2010 16:21
Rick Hugie is currently offline Rick HugieFriend
Messages: 1
Registered: March 2010
Junior Member
I'm using the org.eclipse.swt.widgets.ColorDialog picker to select a color. I then use that RGB to create a Color object that I pass into my figure as the background color.

What I am seeing is that the color I select is different than the color that gets painted in my background. When I take that color and convert it back to RGB to open the picker it shows it as being the one I originally chose.

In order to create my color object I am doing
new Color(Display.getDefault(), rgb.red, rgb.green, rgb.blue);

Any ideas where my issue is? I get identical results on Windows 7 and Ubuntu.

Thanks for your help
Previous Topic:Banner Figure
Next Topic:CombinedTemplateCreationEntry issue
Goto Forum:
  


Current Time: Tue Apr 16 18:40:31 GMT 2024

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

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

Back to the top