How to get the mouseover effects on JButton which should be similar to the effect which we will get on mouseover of tags in Stackoveflow? E.G.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See
JComponent.setToolTipText(String). The tool-tip supports HTML to some extent, but not to the extent of providing the functionality of the links at the bottom of the SO tag pop-ups.To do that, you’d need to swap the tool-tip for a
JWindow/JEditorPanewhere you’d need to ‘wire it together’ yourself. Here is an example that uses aJWindow(to displayBufferedImageinstances).