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

What was one important thing that Abraham Lincoln did?
Who lived in America before the Europeans arrived?
What is one right or freedom from the First Amendment?*
We elect a President for how many years?
the band members sold 316 juice drinks for a fundraiser. they sold 52 more grape drinks than strawberry drinks. how many of each type of juice drink did they se
One beneficial use of radioisotopes is (1) detection of disease (2) neutralization of an acid spill (3) decreasing the dissolved O2(g) level in seawater (4) inc
Under our Constitution, some powers belong to the federal government. What is one power of the federal government?
Which compound is an electrolyte? (I) CH3CHO (3) CH3COOH (2) CH3OCH3 (4) CH3CH2CH3
Who lived in America before the Europeans arrived?
Which compounds are classified as Arrhenius acids? (1) HCl and NaOH (2) HNO3 and NaCl (3) NH3 and H2CO3 (4) HBr and H2SO4