twesbarbier3536 twesbarbier3536
  • 02-12-2021
  • Computers and Technology
contestada

How to have grey font in java swing.

Respuesta :

johnsonwhiteheadjaid johnsonwhiteheadjaid
  • 02-12-2021

Answer:

How do I change the font color in swing?

To set the font and color of JTextArea we can use the setFont() and setForeground() methods of the JTextArea . To create a font we must define the font name, the font style and its size. For the colors we can uses the constant color values defined by the Color class.

Explanation:

Answer Link

Otras preguntas

Plzzzz help me quick
Water has a density of 1 g/ml. What is the mass of the water if it fills a 10 ml container?
what % of the area is shaded
PLEASE HELP ME, ANSWER ALL THE BLANK SPACES PLEASE.. ty!
how to get charmander in pokemon brilliant diamond
Read the following excerpt from Executive Order 9981 issued by President Harry S. Truman in 1948. It is hereby declared to be the policy of the President that t
The diagram shows the apparent motion of the Moon across the night sky. Which action causes the Moon to appear to move this way? A: Earth’s revolution B: The Su
Volunteers at Sam's school use some of the student council's savings for a special project. They buy 6 backpacks for $4 each and fill each backpack with paper a
3. 40 horses to 6 COWS
Can someone help?! (Mythology and Folklore is the subject, not English) What do psychologists and folklorists mean when they refer to a collective unconsciousne