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


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

Icons

Started byEric Douglas <e.d.programmer@gmail.com>
First post2019-12-11 05:35 -0800
Last post2019-12-17 21:08 +0100
Articles 8 — 3 participants

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


Contents

  Icons Eric Douglas <e.d.programmer@gmail.com> - 2019-12-11 05:35 -0800
    Re: Icons Martin Gregorie <martin@mydomain.invalid> - 2019-12-11 16:22 +0000
    Re: Icons Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-12-14 18:22 +0100
      Re: Icons Eric Douglas <e.d.programmer@gmail.com> - 2019-12-16 08:18 -0800
        Re: Icons Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-12-17 02:13 +0100
          Re: Icons Eric Douglas <e.d.programmer@gmail.com> - 2019-12-17 05:44 -0800
          Re: Icons Eric Douglas <e.d.programmer@gmail.com> - 2019-12-17 06:09 -0800
            Re: Icons Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-12-17 21:08 +0100

#39216 — Icons

FromEric Douglas <e.d.programmer@gmail.com>
Date2019-12-11 05:35 -0800
SubjectIcons
Message-ID<b08206ab-ea52-4b05-b887-8002a42f3172@googlegroups.com>
Every application has an icon, if I open Chrome or Word I see an icon on the taskbar, but many of those applications no longer show the icon in the upper left corner if their windows.

If I create a JFrame it shows an icon in the upper left corner.  If I set the icon image to null it displays the old Java cup.  The only way to make that completely go away is to call setUndecorated(true) which removes the entire title bar, which is then tedious to add back in with the minimize, maximize, and close buttons to just make the image go away.  Is there something easier now I'm missing?  I am currently using Java 8 but would also like to hear if something has been added for this in a newer version.

[toc] | [next] | [standalone]


#39217

FromMartin Gregorie <martin@mydomain.invalid>
Date2019-12-11 16:22 +0000
Message-ID<qsr53n$ffs$2@dont-email.me>
In reply to#39216
On Wed, 11 Dec 2019 05:35:31 -0800, Eric Douglas wrote:

> Every application has an icon, if I open Chrome or Word I see an icon on
> the taskbar, but many of those applications no longer show the icon in
> the upper left corner if their windows.
>
Nitpicking: this does depend on the desktop manager you use.

For Example: I use the XFCE desktop manager under Linux. 

Under XFCE no Java or other application, desktop utility or accessory 
(calculator, etc) ever shows an icon in the top left corner of its window.

However, XFCE supports multiple desktops (4 by default) and the relevant 
icon appears on the appropriate desktop selector in the top XFCE menu 
bar. Java applications default to the OpenJava icon. These are used to 
select the desktop you want to see, set focus to your chosen application 
and to move applications between desktops.  
   

-- 
Martin    | martin at
Gregorie  | gregorie dot org

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


#39218

FromDaniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Date2019-12-14 18:22 +0100
Message-ID<qt35pm$mse$1@dont-email.me>
In reply to#39216
On 2019-12-11 14:35, Eric Douglas wrote:
> Every application has an icon, if I open Chrome or Word I see an icon on the taskbar, but many of those applications no longer show the icon in the upper left corner if their windows.
> 
> If I create a JFrame it shows an icon in the upper left corner.  If I set the icon image to null it displays the old Java cup.  The only way to make that completely go away is to call setUndecorated(true) which removes the entire title bar, which is then tedious to add back in with the minimize, maximize, and close buttons to just make the image go away.  Is there something easier now I'm missing?  I am currently using Java 8 but would also like to hear if something has been added for this in a newer version.
> 

<https://stackoverflow.com/questions/6868928/remove-default-jframe-icon>

-- 
DF.

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


#39219

FromEric Douglas <e.d.programmer@gmail.com>
Date2019-12-16 08:18 -0800
Message-ID<da18afe3-0aff-4098-a3a0-3fe2c5aef7c7@googlegroups.com>
In reply to#39218
On Saturday, December 14, 2019 at 12:23:13 PM UTC-5, Daniele Futtorovic wrote:

> 
> <https://stackoverflow.com/questions/6868928/remove-default-jframe-icon>
> 
> -- 
> DF.

That makes the icon disappear, from the upper left corner and from the taskbar.  Is there no way to do what the Microsoft apps do?  They show an icon on the taskbar with nothing in the upper left corner.

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


#39220

FromDaniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Date2019-12-17 02:13 +0100
Message-ID<qt9a47$un1$1@dont-email.me>
In reply to#39219
On 2019-12-16 17:18, Eric Douglas wrote:
> On Saturday, December 14, 2019 at 12:23:13 PM UTC-5, Daniele Futtorovic wrote:
> 
>>
>> <https://stackoverflow.com/questions/6868928/remove-default-jframe-icon>
> 
> That makes the icon disappear, from the upper left corner and from the taskbar.  Is there no way to do what the Microsoft apps do?  They show an icon on the taskbar with nothing in the upper left corner.

<https://stackoverflow.com/questions/15004874/use-different-icons-in-jframe-and-windows-taskbar>
:)

Not trying to be smart-alecky. I didn't know the answer to your
question, but wondered what it might be. So I fired up a search, this
was the second result and... well, I can't put it any better than they
do, so I'll just link it.

Please do let us know whether, if you supply a transparent 1x1px "small"
image and a full "bigger" image, Swing doesn't try to be too clever and
instead does what you expect.

On a more general note, however, I should point out that what you're
trying to do is wrong. For either,
 a) you are trying to do what you are trying out of an idiosyncratic
motivation, i.e. for shits and giggles, and then you're wrong because
you shouldn't: when it comes to UI/UX you should instead stick to
well-established paradigms; or
 b) you are doing this because someone is forcing you to, and then
you're wrong because see a) and you're going along with something that
is wrong.

Not that this needs to stop you, of course. I just felt I should point
it out.

-- 
DF.

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


#39221

FromEric Douglas <e.d.programmer@gmail.com>
Date2019-12-17 05:44 -0800
Message-ID<22edc17c-d765-4f54-8443-3ce3d0745fff@googlegroups.com>
In reply to#39220
On Monday, December 16, 2019 at 8:23:00 PM UTC-5, Daniele Futtorovic wrote:
> On a more general note, however, I should point out that what you're
> trying to do is wrong. For either,

Just trying to get a consistent look as Chrome, Edge, Outlook, Windows Explorer, many of the end user's applications seem to have abandoned the icon for the upper left corner.  More specifically wanting the Swing app (offline) to look like the web app online version of the same app.

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


#39222

FromEric Douglas <e.d.programmer@gmail.com>
Date2019-12-17 06:09 -0800
Message-ID<ec56013a-8b0d-4328-83ec-8be7170a894c@googlegroups.com>
In reply to#39220
On Monday, December 16, 2019 at 8:23:00 PM UTC-5, Daniele Futtorovic wrote:
> > That makes the icon disappear, from the upper left corner and from the taskbar.  Is there no way to do what the Microsoft apps do?  They show an icon on the taskbar with nothing in the upper left corner.
> 
> <https://stackoverflow.com/questions/15004874/use-different-icons-in-jframe-and-windows-taskbar>
> :)
> 
> Not trying to be smart-alecky. I didn't know the answer to your
> question, but wondered what it might be. So I fired up a search, this
> was the second result and... well, I can't put it any better than they
> do, so I'll just link it.
> 
> Please do let us know whether, if you supply a transparent 1x1px "small"
> image and a full "bigger" image, Swing doesn't try to be too clever and
> instead does what you expect.

The person in that post didn't know, I started tracing the Oracle code and it's not so easy to find, on what it does exactly with what image sizes.
I tested with a 1x1 and a 90x90 image and it used the large image for both.  I made the dummy transparent 1x1 a 16x16 and it used the small image for both.  So I did a scale to make the 90x90 a 32x32 and it used the small image in the corner and the larger one on the taskbar.

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


#39223

FromDaniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Date2019-12-17 21:08 +0100
Message-ID<qtbckd$6hc$1@dont-email.me>
In reply to#39222
On 2019-12-17 15:09, Eric Douglas wrote:
> On Monday, December 16, 2019 at 8:23:00 PM UTC-5, Daniele Futtorovic wrote:
>> Please do let us know whether, if you supply a transparent 1x1px "small"
>> image and a full "bigger" image, Swing doesn't try to be too clever and
>> instead does what you expect.
> 
> The person in that post didn't know, I started tracing the Oracle code and it's not so easy to find, on what it does exactly with what image sizes.
> I tested with a 1x1 and a 90x90 image and it used the large image for both.  I made the dummy transparent 1x1 a 16x16 and it used the small image for both.  So I did a scale to make the 90x90 a 32x32 and it used the small image in the corner and the larger one on the taskbar.

Nice! Thanks for the follow-up!

-- 
DF.

[toc] | [prev] | [standalone]


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


csiph-web