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

Which chemical equation is correctly balanced? (1) H2(g) + O2(g)=> H2O(g) (2) N2(g) + H2(g) =>NH3(g) (3) 2NaCl(s)=>Na(s) + Cl2(g) (4) 2KCl(s) => 2K(
The slope of a line parallel to the graph of 4x-5y=12
Why did American Indians occupy Alcatraz Island in 1969?
Which indicator is blue in a solution that has a pH of 5.6? (1) bromcresol green (3) methyl orange (2) bromthymol blue (4) thymol blue
What is the explicit claim made by Carson in this passage? A. All of the birds, fish, and plants will soon die due to the damage done by the people. B. Birds no
What causes mountain ranges to form?
Why doesn't the tribe trust Captain Orlov?
How do you solve x-y=1 ; x+y=3. Please Explain
F=gMv^2/r solve for v
As a sample of the radioactive isotope 131I decays, its half-life(1) decreases(2) increases(3) remains the same