Hi all, 

Here is KeyStrokeConverter to allow you to add an accelerator to a menuitem.

In you xml descriptor, you can add an accelerator to a menuitem as follows

      <menuitem name="mi_new" text="mis_New" mnemonic="mis_New_VK"
accelerator="control N" ActionCommand="new"/>

The string that can be used for the accelerator is described in the
javax.swing.KeyStroke javadoc.

Please find enclosed the KeyStrokeConverter and the updated
ConverterLibrary.

Enjoy,
Eric Lafargue

 <<KeyStrokeConverter.java>>  <<ConverterLibrary.java>> 





Attachment: KeyStrokeConverter.java
Description: Binary data

Attachment: ConverterLibrary.java
Description: Binary data

Reply via email to