Change menu item accelerator menu

1

I created the following MenuItem ,

MenuItem item = new MenuItem("Alterar");
KeyCodeCombination acc = 
                     new KeyCodeCombination(KeyCode.ENTER, KeyCombination.CONTROL_DOWN);
item.setAccelerator(acc);

The accelerator appears as Control+← and I would like Control+Enter to be displayed.

How do I change the text that appears on the accelerator, specifically enter.

  

    
asked by anonymous 13.12.2016 / 15:03

0 answers