Jarek
Jarek

Reputation: 7729

Java how to catch key combos on JFrame

What would be the good way to catch combinations of keys on in JFrame, it is quite messy when using only key listener, is there any framework/library that handles this in a convenient configurable way?

Upvotes: 0

Views: 242

Answers (1)

Jeffrey
Jeffrey

Reputation: 44808

You might be looking for key bindings. As blackcompe says, it uses the KeyStroke class.
Tutorial

Upvotes: 4

Related Questions