Hi all,

If you want the accelerator property for menuitems to be internalizable,
here is the update Parser class.

Enjoy
Eric Lafargue

 <<Parser.java>> 

>  -----Original Message-----
> From:         LAFARGUE Eric (RTD)  
> Sent: lundi 12 mai 2003 14:37
> To:   [email protected]
> Subject:      KeyStroke Converter
> 
> 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
> 
>  << File: KeyStrokeConverter.java >>  << File: ConverterLibrary.java >> 
> 
> 
> 
> 
> 

Attachment: Parser.java
Description: Binary data

Reply via email to