Change Group widget title color in SWT?

It's quite easy to change font of group, check this snippet (used snippet from java2s.com ).

It's quite easy to change font of group, check this snippet (used snippet from java2s.com) //Send questions, comments, bug reports, etc. To the authors: //Rob Warner (rwarner@interspatial.com) //Robert Harris (rbrt_harris@yahoo.com) import org.eclipse.swt. SWT; import org.eclipse.swt.graphics. Color; import org.eclipse.swt.graphics.

Font; import org.eclipse.swt.graphics. RGB; import org.eclipse.swt.layout. *; import org.eclipse.swt.widgets.

*; /** * This class demonstrates groups */ public class GroupExample { public static void main(String args) { Display display = new Display(); Shell shell = new Shell(display); shell. SetLayout(new GridLayout()); // Create the first group Group group1 = new Group(shell, SWT. SHADOW_IN); group1.

SetText("Who's your favorite? "); group1. SetLayout(new RowLayout(SWT.

VERTICAL)); group1. SetFont(new Font(display, "Consolas", 10, SWT. BOLD)); new Button(group1, SWT.

RADIO). SetText("John"); new Button(group1, SWT. RADIO).

SetText("Paul"); new Button(group1, SWT. RADIO). SetText("George"); new Button(group1, SWT.

RADIO). SetText("Ringo"); // Create the second group Group group2 = new Group(shell, SWT. NO_RADIO_GROUP); group2.

SetText("Who's your favorite? "); group2. SetLayout(new RowLayout(SWT.

VERTICAL)); group2. SetForeground(new Color(display, new RGB(255, 0, 0))); new Button(group2, SWT. RADIO).

SetText("Barry"); new Button(group2, SWT. RADIO). SetText("Robin"); new Button(group2, SWT.

RADIO). SetText("Maurice"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } } It provides this behavior on W7 But as you can see, change of color by setForeground(Color c) doesn't change a thing, when I search for additional info I found bug report on SWT bugzilla The color of the title of the group control cannot be changed.It's windows platform dependent bug.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions