Montag, 29. Januar 2007

How to set the background olor or foreground color of a ToolTip / JToolTip ?

Problem:
 "How can I change the background or foreground Color of a Tooltip?"



Solution:
If you want to change the global Color for all Components, use this code:

UIManager.put("ToolTip.foreground",
new ColorUIResource(Color.red));
UIManager.put("ToolTip.background",
new ColorUIResource(Color.black));





 

Keine Kommentare: