Re: Changing the font of tool tip text
- From: Thomas Kellerer <TAAXADSCBIXW@xxxxxxxxxxxxx>
- Date: Fri, 22 Dec 2006 18:51:03 +0100
qu0ll wrote on 22.12.2006 10:28:
Is it possible to change the properties of the font used in displaying tool tip text for a JComponent?
You could override createToolTip() and then set the Font:
public JTooltip createToolTip()
{
JToolTip tip = super.createToolTip();
tip.setFont(myFont);
return tip;
}
haven't tried this though.
If you want to change it globally, you can do this by applying the necessary UIDefaults *before* creating the first Swing Component.
UIDefaults def = UIManager.getDefaults();
def.put("ToolTip.font", myFont);
Thomas
.
- Follow-Ups:
- Re: Changing the font of tool tip text
- From: qu0ll
- Re: Changing the font of tool tip text
- From: Steve W. Jackson
- Re: Changing the font of tool tip text
- References:
- Changing the font of tool tip text
- From: qu0ll
- Changing the font of tool tip text
- Prev by Date: Re: Changing the font of tool tip text
- Next by Date: Re: Changing the font of tool tip text
- Previous by thread: Re: Changing the font of tool tip text
- Next by thread: Re: Changing the font of tool tip text
- Index(es):