title: How to set String's font size, style in Java using the Font class?
body: <p>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 <code>JLabel</code> and <code>JButton</code>. How can I do that?</p>