简体   繁体   中英

how to insert settooltiptext for one vertex in a graph?

I would like to move the mouse over an vertex which was plotted on a JFrame using JUng class and displaying some additional message for that vertex. But I don't know how to set setToolTipText for a vertex. Is there any way? please help me with this

You can add the following command to insert setToolTipbox to your graph

vv.setToolTipText("<html><center>Breast Neoplasms<p>"
            + "Gene interactions</p> </center></html>");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM