How to set String's font size, style in Java using the Font class?
Asked 2012-05-17T06:14:53.270
9
Suppose I have a String, "Hello World". I want to change the style of this string to a BOLD font, and set the size of all the characters from 12 to 18 [pt]. After that I want to use this string in a JLabel and JButton. How can I do that?