-1

i have a java application that's supposed to just popup .. let me do something and vanish. I have a nice little JFrame GUI working for me.

Problem is bringing it back. I want to use a 'global shortcut' to bring it back. I'm on Ubuntu 12.04 with standard jdk.

I have a shortkey assigned to an sh file which does: cd /path/to/app && java Driver

this, ofcourse, launches the app everytime. Is there a way i can send a signal to the running app (signal in the form of an .sh file which i can assign a shortcut to) to frame.setVisible(true) on? You know, to avoid relaunching the app everytime?

saGii
  • 415
  • 5
  • 14

1 Answers1

1
I'm on Ubuntu 12.04 with standard jdk.
Community
  • 1
  • 1
mKorbel
  • 109,107
  • 18
  • 130
  • 305
  • Thanks korbel. Problem is, even with windows (with system tray available), i'd have the same issue. See, i'm trying to 'show' this box using a global short-cut-key like Ctrl-Alt-S or similar. Any more ideas? – saGii Apr 04 '13 at 03:48
  • Hi everyone here and thanks for trying to answer my weird question. I managed to hack-solve the problem. I created a global script which would touch a file somewhere, and an independent running thread inside my java code would check for file existence every 500ms, would set the form Visible and delete the file. – saGii May 14 '13 at 12:24