|
Java™ by example!
|
|
|
How do I change the color of a JToolTip?
To change the color of a tooltip, create a JToolTip instance and use the methods setForeground and setBackground to change its appearance. Then override the method createToolTip on the component where this tooltip applies to and return your own JToolTip instance. (btw. to change the colors of all your tooltips, use the class UIManager and change the keys ToolTip.background and ToolTip.foreground.) Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|