Results 1 to 4 of 4
- 04-02-2009, 05:26 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 2
- Rep Power
- 0
To start external program with Runtime.getRuntime().exec(...) in foreground
I have a JFrame with JTable. When I click a row in JTable another GUI process is started with Runtime.getRuntime().exec(...), e.g. "notepad.exe". However that new window appears not in foreground, but below my swing window. How to start a new process window and bring it to top?
(WindowsXP, jre 1.6_12)
- 04-02-2009, 08:15 AM #2
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
The new process is independent of the spawning process. You have to use whatever constructs it has to bring it to the top.
- 04-02-2009, 12:07 PM #3
Member
- Join Date
- Apr 2009
- Posts
- 2
- Rep Power
- 0
And what constructs I can use to control another process window in Java? JNI or anything else?
- 04-02-2009, 08:16 PM #4
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
Similar Threads
-
grep on multiple files using Runtime.getRuntime().exec()
By cprash.aggarwal in forum Advanced JavaReplies: 3Last Post: 02-11-2009, 06:55 AM -
help with "Runtime.getRuntime().exec(this.command);"
By itaipee in forum New To JavaReplies: 6Last Post: 12-29-2008, 02:47 PM -
help with Runtime.exec()
By Lanfear in forum New To JavaReplies: 18Last Post: 12-16-2008, 11:09 AM -
[SOLVED] Issue with Using Runtime.exec to run an external program
By coolFrenzi in forum Advanced JavaReplies: 1Last Post: 11-14-2008, 06:56 AM -
Runtime.exec()
By hknyo in forum Advanced JavaReplies: 2Last Post: 08-16-2008, 12:40 AM


LinkBack URL
About LinkBacks

Bookmarks