javafx - JavaFX8: How to tell when the mouse hovers over the header portion of a table column? -


i'd display legend in popover control when user hovers mouse on 'header' portion of particular tablecolumn. possible? how? if not possible, welcome suggestions other approaches.

you can install tooltip on node, trick node in mouse neighbourhood of column header. there way using node.lookup it's not ideal since may change.

i think simplest way set own graphic header instead of default text , add tooltip that.

    tablecolumn<data,string> tc1 = new tablecolumn<>();     tablecolumn<data,string> tc2 = new tablecolumn<>();     tooltip t1 = new tooltip("column one");     tooltip t2 = new tooltip("column two");     tc1.setgraphic(new text("col 1"));     tc2.setgraphic(new label("col 2"));     tooltip.install(tc1.getgraphic(), t1);     tooltip.install(tc2.getgraphic(), t2); 

Comments

Popular posts from this blog

php - Using str_replace to translate a MySQL Table in html -

SQL Server - MyCTE query based on 24 hour period (next day) -

asp.net mvc - Cannot display error message on Editor or EditorFor -