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

*

August 2019
M T W T F S S
« Jul    
 1234
567891011
12131415161718
19202122232425
262728293031