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

How did the formation of alliances affect the outbreak of war?
How do I solve c/4d divided by 3/8d
Tasha believes that she can rewrite the difference 120 - 36 as a product of the GCF of the 2 numbers and another difference. Is she correct?
If every positive number has two square roots and you can find the length of the side of a square window by finding a square root of the area, why is there only
How do I solve c/4d divided by 3/8d
what are some fun facts on animal and plant cells.
A box is lowered using a rope. If the acceleration of the box, is 2.5 m/s2 (downward) and the tension in the rope is 31 N, what is the mass of the box (in kg)?
The most commonly spoken language in the Fertile Crescent around the time of Jesus was
Containment was a policy in which the U.S. tried to do what?
Explain the connection, or relationship between a protagonist and an antagonist.