Reputation: 93
I have seen this effect for a list in my Netbeans. Can somebody tell me what this effect is called and how I can implement it in my custom ListCellRenderer?
Thanks for your help.
Andy
Upvotes: 1
Views: 214
Reputation: 324118
The closest thing you can do is use a "tooltip". This is done by:
setToolTipText()
method in you renderer, orgetToolTipText()
method of the JList.Normally the tool tip appears below the mouse location. You can also override the getToolTipLocation()
method to position the tool tip over the current row to more closely mimic the netbeans behaviour.
Upvotes: 1