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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -