How to use JToolTip?
From: Rene Ruppert (rener_at_incca.com)
Date: 11/27/03
- Next message: Christian Kaufhold: "Re: How to use JToolTip?"
- Previous message: Petarian: "Re: a simple java timer"
- Next in thread: Christian Kaufhold: "Re: How to use JToolTip?"
- Reply: Christian Kaufhold: "Re: How to use JToolTip?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 27 Nov 2003 18:04:54 +0100
Hi,
in my component I want to display dynamic tooltips, i.e. a different tooltip
is displayed each time you hover over the component.
I overrode createToolTip() with the following method but the String "TEST"
is never displayed...instead it always shows "HALLO" although the method
createToolTip() is called (I tested with the debugger).
class myComp() extends JComponent
{
public myComp()
{
setToolTipText("HALLO!");
}
public JToolTip createToolTip()
{
JToolTip toolTip = super.createToolTip();
toolTip.setTipText("TEST...");
return toolTip;
}
}
Any hints?
Rene
- Next message: Christian Kaufhold: "Re: How to use JToolTip?"
- Previous message: Petarian: "Re: a simple java timer"
- Next in thread: Christian Kaufhold: "Re: How to use JToolTip?"
- Reply: Christian Kaufhold: "Re: How to use JToolTip?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|