<p>A Java6 application sits in the system tray. It needs to be activated using a hotkey (e.g. Super-G or Ctrl-Shift-L etc) and do something (e.g. showing an input box).</p>

<h2>How do I do that on:</h2>

<ul>
<li>Windows (XP or Vista)</li>
<li>OS/X</li>
<li>Linux (Gnome or KDE)</li>
</ul>

[{'answer_id': 79683, 'author': 'Antti Kissaniemi', 'author_id': 2948, 'author_profile': 'https://Stackoverflow.com/users/2948', 'pm_score': 3, 'selected': False, 'text': '<p>It seems that this is not doable in a cross-platform fashion without using the native interfaces.</p>\n\n<p>On Windows, you can use the free <a href="http://melloware.com/products/jintellitype/index.html" rel="nofollow noreferrer">JIntellitype</a> library.</p>\n'}, {'answer_id': 202272, 'author': 'Torsten Uhlmann', 'author_id': 7143, 'author_profile': 'https://Stackoverflow.com/users/7143', 'pm_score': 3, 'selected': False, 'text': '<p>For Linux (X11) there is JXGrabKey: <a href="http://sourceforge.net/projects/jxgrabkey/" rel="noreferrer">http://sourceforge.net/projects/jxgrabkey/</a></p>\n\n<p>There is also a tutorial for grabbing a global hotkey on Linux: <a href="http://ubuntuforums.org/showthread.php?t=864566" rel="noreferrer">http://ubuntuforums.org/showthread.php?t=864566</a></p>\n\n<p>I didn\'t though find a solution for OS X yet.</p>\n\n<p>To build something for all 3 platforms I\'d suggest stripping down JIntellitype (it\'s Apache license) to it\'s global hotkey functionality and extending it with the OS X and X11 functionality...</p>\n'}, {'answer_id': 240741, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>If anyone wants to do the OSX or Linux versions of the JNI part of Jintellitype I would be more than happy to add those to the JIntellitype library.</p>\n\n<p>Melloware</p>\n\n<p><a href="http://www.melloware.com" rel="nofollow noreferrer">http://www.melloware.com</a></p>\n'}, {'answer_id': 6096179, 'author': 'cracked_all', 'author_id': 188524, 'author_profile': 'https://Stackoverflow.com/users/188524', 'pm_score': 1, 'selected': False, 'text': '<p>I found <a href="http://biletnikov-dev.blogspot.com/2009/09/global-hotkeys-for-java-applications_25.html" rel="nofollow">this</a> solution to work just great on windows. It does not require you to install any software like JIntelliType. Note that this is 32 bit dll and you can recompile for 64-bit JVM is do desire. All credits to original author of the blog.</p>\n'}, {'answer_id': 6422079, 'author': 'Denis Tulskiy', 'author_id': 143585, 'author_profile': 'https://Stackoverflow.com/users/143585', 'pm_score': 5, 'selected': False, 'text': '<p>I\'ve compiled a library for global hotkeys in java using JNA. It currently supports Windows, Linux and Mac OSX. It also supports media keys on windows and linux.</p>\n\n<p>if anyone is interested, try <a href="https://github.com/tulskiy/jkeymaster" rel="noreferrer">https://github.com/tulskiy/jkeymaster</a> </p>\n\n<p>I would appreciate any feedback.</p>\n\n<p>Thank you.</p>\n'}, {'answer_id': 65066501, 'author': 'vda8888', 'author_id': 1974520, 'author_profile': 'https://Stackoverflow.com/users/1974520', 'pm_score': 0, 'selected': False, 'text': '<p>I\'ve written a Java library for global key/mouse events here. This works for Windows, Linux X11, and OSX.</p>\n<p><a href="https://github.com/repeats/SimpleNativeHooks" rel="nofollow noreferrer">https://github.com/repeats/SimpleNativeHooks</a></p>\n'}]
['https://Stackoverflow.com/questions/79658', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']