Mailing Lists: Apple Mailing Lists

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

A little help for a Mac newbie? :-)



Hi, all! I have run into a couple of snags, and I am hoping
that they are the kind of thing you guys have already encountered,
solved, and would be willing to share ... :-)

I am working on a Java app that would ideally have liked to run
inside of a native app that someone else wrote (Adobe Acrobat,
in fact). My first attempt, to run my app literally inside it
(well, in a JVM loaded into it) did not work, I think because
both Acrobat and Java wanted to control the main event loop
for the app. Rather than fight it, I decided to split my app
into two parts: a GUI-less client that would run inside Acrobat,
and a separate server who would be in charge of all GUI, linked
via RMI. This works well - except for one little thing: when
my code within Acrobat asks the server to create a window for the
user to fill, control passes from Acrobat to my app. When the
user dismisses my window, my app retains control. I would have
rather seen my app pass control back to Acrobat - but I don't know
how to say that... Anyone know? (I guess I want the programmatic
equiv of clicking on one of Acrobat's windows, or on its dock icon).

While I have your attention :-) - would anyone also happen to know
how a Java app can get a list of all drive names currently known
to MacOSX? I can look in /Volumes for a list of names - but it
does not include the name for the system drive (which happens to be
the one I need). And java.io.File.listRoots() just returns "/" -
which is true, but not what I need...

And lastly - was there ever a solution to that ghost dialog,
under MacOSX.2.8, using Java 1.4.1? My app runs into the same
problem - but they are dialogs wholly unrelated to each other.
My app's first dialog pops up and goes away properly. The
second dialog pops up and goes away. The third dialog pops up,
and resurrects the second - which is visible but not clickable.
Hiding the third does not hide the second, which is now there
to stay... At the moment, I just moved it as far down/right as
I could - but I can still see its top left corner...
(BTW, setModal(false) and dispose() had no effect...).

Thank you!

Moises
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




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.