If I do Right click on a text box in my JavaFX application the menu items display as bold font. This happens in some text boxes. For example we have one login screen where menu item is displayed properly but in other screen its displaying in bold.
Note: I haven't written any code for right click on text box, as i guess its an internal feature and it displays the usual cut, copy, paste, delete and select all.
How to avoid context menu showing as bold?
This is happening only when I am setting the CSS of label in front of text box as bold.
.label { -fx-font-weight:bold; }
One last thing is that these controls are generated dynamically. Its a popup containing Label, Textbox and a Button.