Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19271

Re: dock icon

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: dock icon
Date 2012-10-12 21:57 -0400
Organization The Wasteland
Message-ID <nospam-43F857.21571512102012@news.aioe.org> (permalink)
References <e03199b1-03a3-468b-849c-092fd4c9a0c3@googlegroups.com>

Show all headers | View raw


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>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

dock icon bob smith <bob@coolfone.comze.com> - 2012-10-12 12:41 -0700
  Re: dock icon "John B. Matthews" <nospam@nospam.invalid> - 2012-10-12 21:57 -0400

csiph-web