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

A cone has a radius of 3 and a height given by the expression 2a. Which expression represents the volume of the cone?
Griots are ___. 1. storytellers 2. poets 3. musicians 4. All of the above.
Read the excerpt from Martin Luther King Jr.’s "I Have a Dream” speech. In a sense we've come to our nation's capital to cash a check. When the architects of o
How many turns should a 10-cm long solenoid have if it is to generate a 1.5 x 10-3 t magnetic field on 1.0 a of current?
Explain how early humans used tools and technologies to establish communities.
All of the following are good tips to keep in mind when taking a test except: A. try answering the question before reading the answer choices. B. don't sp
Business application software programs make it possible to:
is an example of _____. a rational number an irrational number an integer a natural number
What are some of the challenges in fighting superbugs?
Which function is a quadratic function