Customizable Shortcuts in Java Application

Shortcuts may be specified as accelerators in instances of Action. Less flexibly, shortcuts may be represented by KeyEvent instances obtained via KeyListener. Either may be stored in java.util.Preferences or javax.jnlp.BasicService, as suggested here.

I’m unaware of a general purpose library, but this game offers an RCKeys dialog to remap keys. It includes the essential functionality to preclude duplicates.

image

Leave a Comment