user236501
user236501

Reputation: 8648

Java swing how to do when mouse over pop out a small box to show details

I have a JTable displays the event accordingly, I want to do like when mouse over the table cell will pop out a small box show the event details. Something like tooltip how can i do that? is there any component in swing doing that?

Upvotes: 1

Views: 2374

Answers (2)

Eugene Ryzhikov
Eugene Ryzhikov

Reputation: 17369

Use JToolTip and HTML. More info here:

http://java.sun.com/docs/books/tutorial/uiswing/components/html.html

Upvotes: 1

Jonas
Jonas

Reputation: 129075

Have a read about How to Use Tables: Specifying Tool Tips for Cells.

Upvotes: 3

Related Questions