Solved

Java Swing: Change font color

Posted on 2011-09-11
2
284 Views
Last Modified: 2012-05-12
Please let me know how I can change the font color within a class that extends JLabel implements TableCellRenderer.

Thanks!
0
Comment
Question by:dshrenik
  • 2
2 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
Comment Utility

setForeground(Coor.green)
0
 
LVL 47

Expert Comment

by:for_yan
Comment Utility
Within this methois which returns Component just say setForeground in the same way you were setting background color before
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to use external config file with Spring MVC 4 59
strDist challenge 35 84
wordlen challenge 3 46
recursion example 16 68
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now