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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "SWT - Radio button text color question" Watch "SWT - Radio button text color question" New topic

SWT - Radio button text color question

Marc LaFleur

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
I agree. Here's the link: http://aspose.com/file-tools
subject: SWT - Radio button text color question
Similar Threads
JComponent text in some JApplets don't show on Mac, do show on Windows PC
Change the color of a JScrollBar
dynamic text color for radiobutton?
Retrieving radio button selected values.
Need Help with Coloring buttons on Clock