Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an application "active" from java



On 15 Dec 2004, at 20:59, Greg Guerin wrote:

Michael K?lling <email@hidden>

... I'd like to get a process to the front that I spawned myself -- it has no
application in the file system to 'open'.

That's quite a problem.

Can you describe the child process and how you spawn it? For example, is
it a Java program, does it have a GUI, etc.? Does it have to work across
multiple platforms or is it Mac OS X only?

It is another Java VM started through the standard Java Debug Interface (JDI). In our application, we start this process fairly early (before we actually want to run it, for reasons of responsiveness later), and then later load classes into it and start it.


It may or may not have a GUI, but when it has a GUI then I'd like it to come to the front when it kicks into action.

Cross-platform would be wonderful, but I am desperate enough to happily work with platform-dependent solutions.

Also, how much can you change this child program?

I have full control and, most importantly, I can easily communicate between the processes.


I ask because you might be able to send a Posix signal to the child, and
its response could be to bring itself to front.

Okay, I can do this without Posix because I have established communication, and the second process actually knows that it wants to get to the front (in fact both the parent and child processes know) -- I just couldn't figure out a way to bring itself to the front. (The obvious Window.toFront() and anything else I could find only make it the front-most window of those windows _in the current VM_, not on the OSD level.)


In short: I could happily put the code in either parent of child, if only I could write the code.

Regards,

Michael

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Making an application "active" from java (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.