Java – displays tooltips above cells in JTable

When the user enters an incorrect value in it, I need to display a tooltip above (or below:) the cell (see the figure below)

However, if you have a better solution to achieve this behavior, I am open to all propositions (especially because the tooltip is not bound to the cell / JTable / panel. If I move / close / minimize my window, the tooltip is displayed in the same position)

alt text http://img246.imageshack.us/img246/6756/errorpopup.png

Thank you, Damian

Solution

Try getcellrect

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>