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

Velocity of a wave is the.
A potter's wheel, with rotational inertia 49 kg·m2, is spinning freely at 40 rpm. The potter drops a lump of clay onto the wheel, where it sticks a distance 1.2
What is the area of a sector with a central angle of 4π/5 radians and a radius of 11 cm?
9 cu yd 113 cu in - 4 cu ft 129 cu in
What was the most significant thing about napoleon’s new constitution?
Please help me answer this! A. Testimony B. Reputation C. Appearance D. Plea
What is the tangential velocity of a 15 kg mass tied to a string and moving in a circle of radious 10 m, if the period of the orbit is 0.2 seconds?
What is the product?
Question 8 (Fill-In-The-Blank Worth 1 points) La escuela está __________ el museo y la casa. (between) Answer for Blank 1:
What is your weight on Venus, assuming that the acceleration due to gravity on Venus is 8.875 m/s^2 and your mass is 50 kg.