File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes SWT - Radio button text color question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT - Radio button text color question" Watch "SWT - Radio button text color question" New topic
Author

SWT - Radio button text color question

Marc LaFleur
Greenhorn

Joined: Nov 03, 2009
Posts: 2
I have created a radio button and set some text to describe it.
Using the setForeground method does not work to change the color of the text.
Using setBackground does work but the text remains the default color.

Does anyone know how to change the radio button's default text color?

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Your code works fine for me.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
 
 
subject: SWT - Radio button text color question