How to code multiple line tooltips with bold text

Many Java programs use tool tips in Java Swing to display more information when the mouse cursor hovers over a button or text field. There is a method of making text within that tool tip bold, italics, colored and more. Below is an illustration of the command that uses HTML tags to display that formatting in the ToolTip.

btnPortfolio.setToolTipText("<html>Select the Portfolio file <b>from JStock</b>. File name has to be <b>buyportfolio.csv</br></html>");

Leave a Reply

  

  

  

Blue Captcha Image
Refresh

*

March 2019
M T W T F S S
« Feb    
 123
45678910
11121314151617
18192021222324
25262728293031