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: Java application appearing in Dock




Hi Andy,

I think this occurs if you use any images classes that require a graphics context.
Try setting headless mode:


System.setProperty("java.awt.headless","true");

Dave

Andrew Williams wrote:
Hello all out there, first post for me.

I am working on some java build software (Maven if anyone knows that)
and we are putting a new launcher in place. This all works fine as
expected, however I have encountered a small issue.

Every time the main class starts it creates an icon in the Dock and
creates a Menu at the top of the screen, stealing focus. This is quite
annoying, especially if running it many times on an integration test or
such.
Can anyone point out what I might be doing to cause this? I have not
done much OSX development before.

Andy

_______________________________________________
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: 
 >Java application appearing in Dock (From: Andrew Williams <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.