--- Original Message -
From:
Greg Munt
To: Arnaud Hallais ; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 5:46
PM
Subject: Re: Tooltips in JList
IIRC DefaultListCellRenderer returns JLabels
cast to Component.
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
Salut
Well, look in the file jre/lib/font.properties for font properties setting.
We had the problem here, but since the admin installed a font xserver,
we do not have anymore undefined font. But sorry I don't know much
more on font xserver.
Other solution, use another font for zapfdingbat
Hello,
I'd like to make a JList which displays different
tooltips depending on which item the mouse is on. Is there any simple way to do
this, I did not find it, sorry!
1 - I tryed to overwrite the JList method
getToolTipText() but I am missing the position of the mouse so I can't
--- Original Message -
From:
Greg Munt
To: Arnaud Hallais ; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 5:46
PM
Subject: Re: Tooltips in JList
IIRC DefaultListCellRenderer returns JLabels
cast to Component.
the JList, which paints them in its own
graphical context. So setting a tooltips on these components is
useless.
thanks for every one help
- Original Message -
From:
Marijn H.
van der Ploeg
To: Arnaud Hallais ; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ; [EMAIL PROTECTE
What is the purpose of using an extra panel between your table and the
ScrollPane.
here is some code I use to have a table ina scrollpane. And after I change
the scrollpane size (setMinimunSize, setPreferreSize ...)
JTable myTable = new JTable();
JScrollPane myScrollPane = new JScrollPane();
serious way since you know what kind of object
getValueAt returns
} else
return null;
a++
- Original Message -
From: panyamkm [EMAIL PROTECTED]
To: Arnaud Hallais [EMAIL PROTECTED]
Sent: Monday, October 08, 2001 4:44 PM
Subject: Re: showing tooltips when