Add icon to menuItem in JavaFx by CSS

Viewed 6603

I use this CSS to add icon to menuItem on JavaFX application:

    #mniOpen > .label{
    -fx-graphic:url(media/open.png);
}

It works, but one problem: my menuItem has a shortcut key (Ctrl+O), so in this item there are two label. In the result, the icon repeats twice for this menuItem:

enter image description here

How can remove the second icon (for Ctrl+O) ?

1 Answers
Related