Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   dock icon (http://www.velocityreviews.com/forums/t953307-dock-icon.html)

bob smith 10-12-2012 07:41 PM

dock icon
 
Does anyone know how to set the dock icon of a Java Swing app on Mac?

Thanks.

Here's what I'm talking about:

http://ScrnSht.com/tbowkq

John B. Matthews 10-13-2012 01:57 AM

Re: dock icon
 
In article <e03199b1-03a3-468b-849c-092fd4c9a0c3@googlegroups.com>,
bob smith <bob@coolfone.comze.com> wrote:

> Does anyone know how to set the dock icon of a Java Swing app on Mac?
>
> Thanks.
>
> Here's what I'm talking about:
>
> http://ScrnSht.com/tbowkq


Using com.apple.eawt.Application, you can do something like this:

Application.getApplication().setDockIconImage(icon );

Alternatively, you can specify your icon in the Info.plist file of a Mac
OS X application bundle, as suggested here:

<http://stackoverflow.com/a/8956715/230513>

This project is an example:

<http://applecommander.sourceforge.net/>

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>


All times are GMT. The time now is 10:56 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.