override JTable.getToolTipText(MouseEvent event) to return a text when the
cell text is too wide and null otherwise. If the return tooltip text is
null, no tooltip is shown.
I didn't test it but it should work (I used this for JList)
Don't forget to register your table to the ToolTipManager with :
ToolTipManager.registerComponent(myTable);

a++
----- Original Message -----
From: "panyamkm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 08, 2001 10:51 AM
Subject: showing tooltips when content's length is more than JTable cell
width


> Hi all,
>
> I want to show tooltips only when content's length is more than JTable
cell
> width when user minimises the column.
>
> I am using JDK 1.2.2 .
>
>
> Thanks in Advance
>
> Thanks and Regards
> panyam
>
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to