Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > dock icon

Reply
Thread Tools

dock icon

 
 
bob smith
Guest
Posts: n/a
 
      10-12-2012
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
 
Reply With Quote
 
 
 
 
John B. Matthews
Guest
Posts: n/a
 
      10-13-2012
In article <(E-Mail Removed)>,
bob smith <(E-Mail Removed)> 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>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission to use Mac OS 'rocketship' dock icon? Anand Patil Python 1 02-29-2008 03:32 AM
OS X launcher internals: dock icon Larry Barowski Java 0 01-20-2006 11:10 PM
Kodak Easyshare Dock 6000 vs new Dock 3 Bowman Digital Photography 3 03-03-2005 03:11 AM
app.rc resource's icon to .net Icon Miro Durcik ASP .Net 0 10-09-2004 12:44 AM
howto place internet icon on the level of the start icon Sieds Computer Support 5 04-18-2004 01:51 PM



Advertisments