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



Bill Janssen wrote:
| Thanks, Mary.  What I like about this solution is that it doesn't
| introduce any extra mouse-click or ReOpenApplication events.  If only
| I knew the name of the Mac app in my Java code...  Suppose I could
| hard-code it.

Use Class.getResource() on the main class. Of course, once you have the URL to the main class, you might as well use "open", which will probably be faster (since no AppleScript compilation will be needed).

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

References: 
 >Re: Making an application "active" from java (From: Bill Janssen <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.