Originally posted by jagan bisoyi: Hello ladies and gentle man,
Can I customize a JToolTip so that I can add a JPanel to it? i.e is it possible add component to a JToolTip. A sample code will make a great favor.
Yes you can do it. Check out JComponent#createToolTip. JToolTip extends Container so you can definitely add components to it. If it is just formatting you are interested in, I would suggest you use HTML in your tooltip.
Thanks for the reply. Still I am facing a problem. JToolTip doesn't shows the Jbutton what I have added. I also tried to add JPanel but A run time Exception rises to tell that, "Can't add a Window to a container!"