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


Groups > comp.lang.java.programmer > #21482 > unrolled thread

icon change

Started bybob smith <bob@coolfone.comze.com>
First post2013-01-17 11:21 -0800
Last post2013-01-17 14:18 -0800
Articles 7 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  icon change bob smith <bob@coolfone.comze.com> - 2013-01-17 11:21 -0800
    Re: icon change FredK <fred.l.kleinschmidt@gmail.com> - 2013-01-17 11:32 -0800
      Re: icon change bob smith <bob@coolfone.comze.com> - 2013-01-17 13:08 -0800
        Re: icon change "Steve W. Jackson" <stevewjackson@knology.net> - 2013-01-17 15:23 -0600
          Re: icon change bob smith <bob@coolfone.comze.com> - 2013-01-17 14:42 -0800
            Re: icon change FredK <fred.l.kleinschmidt@gmail.com> - 2013-01-18 08:30 -0800
    Re: icon change Roedy Green <see_website@mindprod.com.invalid> - 2013-01-17 14:18 -0800

#21482 — icon change

Frombob smith <bob@coolfone.comze.com>
Date2013-01-17 11:21 -0800
Subjecticon change
Message-ID<66a4c044-75c3-49e1-b149-1618f152c044@googlegroups.com>
I have a Swing app, and I want to change the icon that shows in the bottom bar when it runs.

Anyone know how to do that?

Right now, it's a coffee cup.

[toc] | [next] | [standalone]


#21484

FromFredK <fred.l.kleinschmidt@gmail.com>
Date2013-01-17 11:32 -0800
Message-ID<391a71e1-4c1d-463f-955a-8d3c8c5f7657@googlegroups.com>
In reply to#21482
On Thursday, January 17, 2013 11:21:41 AM UTC-8, bob smith wrote:
> I have a Swing app, and I want to change the icon that shows in the bottom bar when it runs. Anyone know how to do that? Right now, it's a coffee cup.

frame.setIconImage(image);

[toc] | [prev] | [next] | [standalone]


#21486

Frombob smith <bob@coolfone.comze.com>
Date2013-01-17 13:08 -0800
Message-ID<3cfa1dd3-163c-479a-ad66-99a49664f4c5@googlegroups.com>
In reply to#21484
On Thursday, January 17, 2013 1:32:12 PM UTC-6, FredK wrote:
> On Thursday, January 17, 2013 11:21:41 AM UTC-8, bob smith wrote:
> 
> > I have a Swing app, and I want to change the icon that shows in the bottom bar when it runs. Anyone know how to do that? Right now, it's a coffee cup.
> 
> 
> 
> frame.setIconImage(image);

Thanks.

That seems to work on Windows, but not on Mac.

[toc] | [prev] | [next] | [standalone]


#21488

From"Steve W. Jackson" <stevewjackson@knology.net>
Date2013-01-17 15:23 -0600
Message-ID<stevewjackson-8E1892.15234817012013@news.individual.net>
In reply to#21486
In article <3cfa1dd3-163c-479a-ad66-99a49664f4c5@googlegroups.com>,
 bob smith <bob@coolfone.comze.com> wrote:

> On Thursday, January 17, 2013 1:32:12 PM UTC-6, FredK wrote:
> > On Thursday, January 17, 2013 11:21:41 AM UTC-8, bob smith wrote:
> > 
> > > I have a Swing app, and I want to change the icon that shows in the 
> > > bottom bar when it runs. Anyone know how to do that? Right now, it's a 
> > > coffee cup.
> > 
> > 
> > 
> > frame.setIconImage(image);
> 
> Thanks.
> 
> That seems to work on Windows, but not on Mac.

That's because the Windows task bar automatically picks up the frame's 
icon, whereas the Mac OS X environment uses a totally different 
technique.  It's picking up the icon of the application actually 
running, which is Java itself.  To change that, you'll have to learn how 
to "bundle" a Mac app.
-- 
Steve W. Jackson
Montgomery, Alabama

[toc] | [prev] | [next] | [standalone]


#21496

Frombob smith <bob@coolfone.comze.com>
Date2013-01-17 14:42 -0800
Message-ID<8b02efed-d1d5-4524-8213-2181c1ad5097@googlegroups.com>
In reply to#21488
On Thursday, January 17, 2013 3:23:49 PM UTC-6, Steve W. Jackson wrote:
> In article <3cfa1dd3-163c-479a-ad66-99a49664f4c5@googlegroups.com>,
> 
>  bob smith <bob@coolfone.comze.com> wrote:
> 
> 
> 
> > On Thursday, January 17, 2013 1:32:12 PM UTC-6, FredK wrote:
> 
> > > On Thursday, January 17, 2013 11:21:41 AM UTC-8, bob smith wrote:
> 
> > > 
> 
> > > > I have a Swing app, and I want to change the icon that shows in the 
> 
> > > > bottom bar when it runs. Anyone know how to do that? Right now, it's a 
> 
> > > > coffee cup.
> 
> > > 
> 
> > > 
> 
> > > 
> 
> > > frame.setIconImage(image);
> 
> > 
> 
> > Thanks.
> 
> > 
> 
> > That seems to work on Windows, but not on Mac.
> 
> 
> 
> That's because the Windows task bar automatically picks up the frame's 
> 
> icon, whereas the Mac OS X environment uses a totally different 
> 
> technique.  It's picking up the icon of the application actually 
> 
> running, which is Java itself.  To change that, you'll have to learn how 
> 
> to "bundle" a Mac app.
> 
> -- 
> 
> Steve W. Jackson
> 
> Montgomery, Alabama



Yeah, I figured out how to bundle a Mac app.

I guess I was hoping though to have a single JAR file that would be icon-correct on Windows and Mac.

[toc] | [prev] | [next] | [standalone]


#21523

FromFredK <fred.l.kleinschmidt@gmail.com>
Date2013-01-18 08:30 -0800
Message-ID<c347068e-0321-495a-a949-601e347d334a@googlegroups.com>
In reply to#21496
On Thursday, January 17, 2013 2:42:25 PM UTC-8, bob smith wrote:
> On Thursday, January 17, 2013 3:23:49 PM UTC-6, Steve W. Jackson wrote: > In article <3cfa1dd3-163c-479a-ad66-99a49664f4c5@googlegroups.com>, > > bob smith <bob@coolfone.comze.com> wrote: > > > > > On Thursday, January 17, 2013 1:32:12 PM UTC-6, FredK wrote: > > > > On Thursday, January 17, 2013 11:21:41 AM UTC-8, bob smith wrote: > > > > > > > > > I have a Swing app, and I want to change the icon that shows in the > > > > > bottom bar when it runs. Anyone know how to do that? Right now, it's a > > > > > coffee cup. > > > > > > > > > > > > > > > > frame.setIconImage(image); > > > > > > Thanks. > > > > > > That seems to work on Windows, but not on Mac. > > > > That's because the Windows task bar automatically picks up the frame's > > icon, whereas the Mac OS X environment uses a totally different > > technique. It's picking up the icon of the application actually > > running, which is Java itself. To change that, you'll have to learn how > > to "bundle" a Mac app. > > -- > > Steve W. Jackson > > Montgomery, Alabama Yeah, I figured out how to bundle a Mac app. I guess I was hoping though to have a single JAR file that would be icon-correct on Windows and Mac.

Note that frame.setIconImage(image) also works with most Unix and Linux window managers.

[toc] | [prev] | [next] | [standalone]


#21489

FromRoedy Green <see_website@mindprod.com.invalid>
Date2013-01-17 14:18 -0800
Message-ID<02ugf8dndbt6pmibnb6qv3u4svps13q0aj@4ax.com>
In reply to#21482
On Thu, 17 Jan 2013 11:21:41 -0800 (PST), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>I have a Swing app, and I want to change the icon that shows in the bottom bar when it runs.
>
>Anyone know how to do that?

I don't know about that particular icon, but in general you change
those sorts of thing by changing the Look and Feel or writing your own
L&F or writing one that modifies another.

See http://mindprod.com/jgloss/laf.html
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The first 90% of the code accounts for the first 90% of the development time.
The remaining 10% of the code accounts for the other 90% of the development 
time. 
~ Tom Cargill  Ninety-ninety Law 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web