How can I change the background color and text of a ToolTip? I already did a search and found here a code snippet but I can not change it. The colors always remain the standard NetBeans. Any suggestions?
I put the following code in the constructor of my class:
UIManager.put("ToolTip.foreground", Color.BLACK);
UIManager.put("ToolTip.background", Color.GREEN);
ToolTipManager.sharedInstance().setInitialDelay(0);
ToolTipManager.sharedInstance().setDismissDelay(1500);
jFormattedNIPC.setToolTipText("teste");
Update:
Use HTML in the field properties in the toolTipText section. The color managed to change well, but the background looks like this:
The background color does not fill the 'balloon' completely.
Used: <html><p style='background-color:blue; color:white;'>teste</p></html>