Fork me on GitHub

Swing Shortcut Manager

A reusable keyboard shortcut manager for Swing

Overview

Swing currently lacks a reusable keyboard shortcut manager widget. Additionally, Swing's action system suffers from many deficiencies, including an irritating amount of in-code boilerplate. Swing Shortchut Manager provides the missing shortcut manager, automatically stylized to the underlying playtform (Mac, Linux, or Windows), and allows action configuration in declarative XML. The manager is written in Scala, but can be used from any JVM language, Java included.

Screenshots

Mac

screenshot

Ubuntu

screenshot

Windows

screenshot

Integrating into your application

Swing Keyboard Manager is designed to be easily integrated into your application. Check out how Penn TotalRecall does it, using an actions.xml file, a simple JFrame and an XActionListener.

Install

Swing Keyboard Manager is available on Maven Central.

Maven

<dependency>
    <groupId>com.yuvimasory</groupId>
    <artifactId>swing-keyboard-manager_2.9.2</artifactId>
    <version>1.0.0</version>
</dependency>

Ant

<dependency org="com.yuvimasory" name="swing-keyboard-manager_2.9.2" rev="1.0.0"/>

SBT

libraryDependencies += "com.yuvimasory" %% "swing-shortcut-manager" %% "1.0.0"

Using from Java & Scala

You may be wondering what the funny "_2.9.2" is on the Maven group ID. That's just the version of Scala used to compile the project. You can use the Swing Keyboard Manager from Java (version 5 or higher) or from Scala (versions 2.9.0 through 2.9.2).

Source Code

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/ymasory/swing-keyboard-manager.git
Alternatively, you can browse the code through GitHub.

Contact

Yuvi Masory