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

3x2 − y3 − y3 − z if x = 3, y = −2, and z = −5.
What is the best way to get the right amount of vitamins needed from proper growth and development? Take a multi-vitamin daily. Eat a variety of foods that are
Solve this equation
The sun's motion across the sky is caused by _____. The sun's movement Earth's rotation Earth's revolution The sun's rotation
the laffite family deposits $8500 in a savings account at 6.75% interest, compounded continuously, how much will the account be after 25 years
What transforms a piece of information into evidence? when it comes from a reputable source when it is supported by a citation when it is used to support or ref
How can we discuss to stop using camera in the school as a class monitor
25.5 is what percent of 8?
The interquartile range of a data set is 10 units. What does this represent?
Name two alternative for solar power