Sometimes one line of tool tip is not enough. You may want to try and play around with JToolTip, but if you in hurry this "little hack" can be handy.
With little of HTML plus CSS code you can work out various formats (font, colour, alignment, size etc.).

Kevingon commented: Excellent tip :D +1
import javax.swing.*;
import java.awt.*;

public class ModifyToolTip {

  public static void main(String args[]) {
    Runnable runner = new Runnable() {
      public void run() {
        JFrame frame = new JFrame("JToolTip Sample");

		JPanel panel = new JPanel();
		JButton butt = new JButton("Hello, World");
        butt.setPreferredSize(new Dimension(120,55));
        	+"<h2 style='color: red; font-style: italic;'>World</h2>"
        	+"<br/>so simple.");

        frame.setSize(300, 150);
About the Author
Member Avatar peter_budo Code tags enforcer

Android developer and Battlefield player

Thanks, this was exactly what I was looking for

The ability to use (limited) HTML comes from JLabel, which is used to render tooltips. Many other Swing components (eg JList) also use JLabels to display a line of content, so this technique can be used to format text in many Swing components.

Thanks, this was exactly what I was looking for

I posted this 3 years ago, when I was finishing university so sorry for luck of info on it. Nevertheless I'm happy that someone found it useful.