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



Yes, I think a Mac OS X solution is what I need for now (though it
would be nice if the Java SDK had something like this).

I see that somewhere there's a class called
"com.apple.cocoa.application.NSApplication", which has a method
"activateIgnoringOtherApps", which sounds like exactly what I want.

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Java/Classes/NSApplication.html#//apple_ref/doc/uid/20000624/CACCJDJC

But I can't find a jar file on my system that includes this class.  Is
this old documentation?  Is this class obsolete?

Bill

> Bill Janssen wrote:
> | Is there some way,
> | from Java, to make my application the "active" application?
> 
> If your application will run only on OS X, you could exec() the "open" command. (That would require your application knowing it's own name and location, however.)
> 
> Glen Fisher
> 
> 
>  _______________________________________________
> 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


 _______________________________________________
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: 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.