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

Bonnie invests a sum of money for 3 years at an interest rate of 4.5%, gaining $9.45 in interest. What was the total sum of money invested by Bonnie?
i need help badly emergency!!
What was WW1 like in Europe
Suppose X is a random variable where P(X = x) = 1/6 for x in the set {1, 2, 3, 4, 5, 6}. What is E(X)? A) 3.5 B) 2.5 C) 4.5 D) 1.5
HELP ME IM DYIING HEREEEE!
Which document, delivered to the policy owner, includes information about premium amounts, cash values surrender values, and death benefits for specific policy
Find the value of unknown angles
Given , find the quotient. (2 points) −14.6 1.825 −3.65 14.6
Chromosome 11 is made of over million base pairs. Approximately how many genes are found on chromosome 11? List the genetic disorders found on chromosome 11. D
Identify the reagents a-i that you would use to accomplish each of the following transformations. a) CH₃CH₂OH a→ CH₃COOH b) C₆H₆ b→ C₆H₅Cl c) CH₃CH₂COOH c→ CH₃C